🔍 CVE-2026-99175

0.0
CVSS Score
UNKNOWN
2026-10-28
2026-10-30 13:21
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 fsnotify 서브시스템에서, 커넥터 해제(teardown) 중 새 마크가 삽입될 수 있는 경쟁 조건이 발견되어 수정되었습니다. 이로 인해 fdinfo를 읽는 비특권 사용자가 NULL 포인터에 대해 igrab()을 호출하여 커널 메모리 오류가 발생할 수 있었습니다. 수정은 커넥터에 DESTROYING 플래그를 설정하여 해제 중 새 마크 추가를 -ENOENT로 거부하는 방식입니다.

💡 쉬운 설명

파일 변경 감시 기능을 정리하는 도중에 같은 감시를 다시 등록하면 시스템이 잘못된 메모리를 건드릴 수 있는 문제였습니다. 이를 막기 위해 정리 중에는 새 감시 등록을 거부하도록 고쳐졌습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: fsnotify: prevent mark additions during connector teardown fsnotify_destroy_marks() keeps a reference to its current mark while it drops conn->lock to destroy the mark. This stabilizes the forward-walk cursor, but does not prevent a new mark from being inserted before it. For example, an inotify watch re-added after IN_IGNORED sorts before the old, detached mark for the same group. The walk can miss the replacement and then detach the entire connector from the object. The replacement is still on its group's marks_list and, for inotify, in the watch IDR. The group mutex no longer protects the connector's object from disappearing. An unprivileged fdinfo read racing the final detach can consequently call igrab(NULL): BUG: KASAN: null-ptr-deref in igrab+0x24/0x100 Write of size 4 at addr 0000000000000148 Call Trace: igrab+0x24/0x100 inotify_show_fdinfo+0x1dc/0x5e0 seq_show+0x397/0x690 Set a DESTROYING flag under conn->lock before starting the walk, and reject new marks on that connector with -ENOENT. The existing add-mark error paths undo the temporary group-list entry and the backend's watch allocation. Do not wait for teardown while holding the group mutex, which the destroyer needs. Once the old connector is detached, an add can install a fresh connector as before. This closes the insertion race for all object types using the common connector teardown, without changing the mark reference or SRCU lifetime rules.

📍 영향받는 시스템

수정 이전의 Linux 커널 (fsnotify/inotify를 사용하는 모든 버전, 정확한 버전 범위는 확인 필요)

⚔️ 공격 벡터

비특권 사용자가 inotify 감시를 제거·재등록하는 작업과 /proc fdinfo 읽기를 경쟁적으로 반복해 커널 NULL 포인터 역참조를 유발

🛡️ 대응 방법

수정이 포함된 최신 Linux 커널 버전으로 업데이트하고 재부팅

🔧 검증 코드

출력된 커널 버전을 배포판 보안 권고(예: 해당 배포판의 CVE-2026-99175 패치 커널 버전)와 비교하여, 수정된 버전 이상이면 패치된 것이고 이전 버전이면 취약할 수 있습니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel