Linux Kernel inotify Invalid Watch Descriptor Event Reporting Vulnerability

Vulnerability

A vulnerability in the Linux kernel's inotify implementation can lead to incorrect event reporting to userspace. This issue arises when the inotify_freeing_mark() function races with inotify_handle_inode_event(). During this race condition, inotify_handle_inode_event() may observe that the watch descriptor (wd) has been reset to -1, indicating that it has been removed, and report this invalid value to the inotify listener. Such a discrepancy can confuse the listener. The vulnerability affects the Linux kernel stable tree.

Impact

The vulnerability can cause inotify listeners to receive invalid watch descriptor values, leading to potential confusion or misinterpretation of file system events.

Reproduction

The vulnerability can be reproduced by creating a race condition between the inotify_freeing_mark() and inotify_handle_inode_event() functions. This can be achieved by rapidly adding and removing inotify watches on a file or directory, causing the watch descriptor to be reset to -1 before the event can be properly processed.

Remediation

Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed.

Added: Dec 24, 2025, 3:15 PM
Updated: Dec 24, 2025, 3:15 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
0.6
exploitability
3.9
remediation
7.7
relevance
1.6
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.