CVE-2023-54119
Unknown Unknown - Not Provided
Inotify Use-After-Free in Linux Kernel Causes Event Corruption

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: inotify: Avoid reporting event with invalid wd When inotify_freeing_mark() races with inotify_handle_inode_event() it can happen that inotify_handle_inode_event() sees that i_mark->wd got already reset to -1 and reports this value to userspace which can confuse the inotify listener. Avoid the problem by validating that wd is sensible (and pretend the mark got removed before the event got generated otherwise).
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-05-07
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability occurs in the Linux kernel's inotify subsystem. When two functions, inotify_freeing_mark() and inotify_handle_inode_event(), run concurrently, a race condition can cause inotify_handle_inode_event() to report an invalid watch descriptor (wd) value of -1 to userspace. This invalid value can confuse the inotify listener because it indicates an event related to a watch that has already been removed. The fix involves validating the wd to ensure it is sensible before reporting events.


How can this vulnerability impact me? :

This vulnerability can cause userspace applications that rely on inotify to receive incorrect or confusing event notifications due to invalid watch descriptor values. This may lead to improper handling of filesystem events, potentially causing application errors or unexpected behavior when monitoring file system changes.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart