🔍 CVE-2026-89595

0.0
CVSS Score
UNKNOWN
2026-09-11
2026-10-19 09:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 fsnotify에서 동시 마크 업데이트 시 stale object mask가 발생하는 취약점이 해결되었습니다. 여러 스레드가 동시에 fanotify 또는 inotify 마크를 수정할 때, 캐시된 마스크가 최신 상태를 반영하지 못해 특정 이벤트(예: FAN_MODIFY, IN_MODIFY)를 놓칠 수 있는 레이스 컨디션 문제입니다.

💡 쉬운 설명

파일의 변화를 감시하는 기능에서 두 가지 작업이 동시에 일어날 때, 감시 설정이 꼬여서 파일이 수정되어도 이를 알아채지 못하는 현상입니다. 이로 인해 보안 프로그램이나 파일 감시 도구가 파일 변경 사항을 놓칠 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: fsnotify: Fix stale object mask after concurrent mark updates When a mark gets a new event bit, fanotify and inotify may avoid recalculating the object mask if the cached aggregate already contains that bit. This is racy with a recalculation triggered by a concurrent update to another mark on the same connector. The concurrent scan can read the mark before the new bit is added, while the updater reads the old aggregate before that scan publishes its result. The updater then skips recalculation and the scan publishes a mask without the bit, leaving the object mask stale after both updates complete. This can be reproduced with two fanotify groups watching the same inode: one thread removes FAN_MODIFY from one existing mark while another thread adds FAN_MODIFY to the other mark. After both fanotify_mark() calls return, writes can fail to produce FAN_MODIFY for the group whose mark now contains the bit. This was reproduced on an unmodified v6.12.95 kernel. The equivalent inotify interleaving loses IN_MODIFY events. For normal fanotify additions, recalculate whenever the raw mark mask changes. The normal mask is not cleared asynchronously, so an unchanged addition cannot introduce missing interest. Always recalculate ignore-mask updates because FS_MODIFY handling may clear the ignore mask without taking mark->lock, making snapshot comparisons unreliable. Always recalculate after updating an existing inotify watch. Its replace path temporarily sets mark->mask to zero, so a concurrent scan can observe zero even when the old and final masks are equal. Assigning the replacement mask directly would avoid the transient zero, but existing-watch updates are infrequent, so unconditional recalculation is simpler.

📍 영향받는 시스템

Linux kernel v6.12.95 및 이전 버전 (fanotify/inotify 사용 시)

⚔️ 공격 벡터

로컬 시스템에서 특정 파일의 마크를 동시에 수정하는 레이스 컨디션 유도

🛡️ 대응 방법

Linux 커널을 최신 패치 버전으로 업데이트하여 fsnotify의 마스크 재계산 로직을 적용해야 합니다.

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 최신 패치 버전인지 확인합니다.

Shell / Script
uname -r

💻 영향받는 소프트웨어

Linux Kernel