Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-53143 Overview
CVE-2024-53143 is a use-after-free vulnerability [CWE-416] in the Linux kernel's fsnotify subsystem. The flaw stems from incorrect ordering between iput() and the watched_objects counter decrement. When the counter drops before iput() completes, the superblock can be freed while a reference is still held, leading to a UAF of structures such as sb->s_fs_info in tmpfs.
A local attacker with low privileges can trigger the race condition to corrupt kernel memory. Successful exploitation enables privilege escalation on affected Linux systems.
Critical Impact
Local attackers can exploit the use-after-free in fsnotify to achieve kernel memory corruption, potentially escalating privileges to root on vulnerable Linux kernels.
Affected Products
- Linux Kernel (multiple stable branches prior to the fix commits)
- Distributions shipping tmpfs with fsnotify watches enabled
- Systems using inotify, fanotify, or dnotify watchers on filesystem inodes
Discovery Timeline
- 2024-12-07 - CVE-2024-53143 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-53143
Vulnerability Analysis
The fsnotify subsystem tracks filesystem events by maintaining a watched_objects counter on each superblock. This counter keeps the superblock alive while any inotify, fanotify, or dnotify watcher holds references to inodes beneath it. The vulnerability arises because the kernel decremented watched_objects before calling iput() on the referenced inode.
Holding an inode reference requires the superblock to remain valid. When watched_objects reaches zero prematurely, generic_shutdown_super() can free the superblock while iput() still accesses inode state tied to it. The result is a use-after-free on structures such as sb->s_fs_info, which is particularly exploitable in tmpfs.
A secondary issue affects fsnotify_put_sb_watched_objects(). The function could call fsnotify_sb_watched_objects() on a superblock that was already freed, producing a UAF read of sb->s_fsnotify_info.
Root Cause
The root cause is incorrect lifetime management in the fsnotify cleanup path. The ordering between inode release (iput()) and the watched-objects decrement violated the invariant that a superblock must outlive any inode reference held against it. The CHECK_DATA_CORRUPTION() guard in generic_shutdown_super() often turns the race into an oops rather than silent corruption, which makes the UAF window narrow but reachable.
Attack Vector
Exploitation requires local access with low privileges and no user interaction. An attacker schedules filesystem watchers against a tmpfs mount, then races teardown of the mount with watcher removal. Winning the race frees the superblock while an inode reference is still outstanding, producing a controllable UAF on sb->s_fs_info. See the Chromium Project Zero issue for the reporter's technical analysis.
No public exploit code is available at this time, and the CVE is not listed in CISA's Known Exploited Vulnerabilities catalog.
Detection Methods for CVE-2024-53143
Indicators of Compromise
- Kernel oops or panic messages referencing generic_shutdown_super, fsnotify_put_sb_watched_objects, or CHECK_DATA_CORRUPTION
- Unexpected tmpfs unmount failures accompanied by stack traces touching fsnotify_sb_watched_objects
- Local processes with unusual inotify or fanotify usage patterns against short-lived tmpfs mounts
Detection Strategies
- Monitor dmesg and /var/log/kern.log for KASAN use-after-free reports in fsnotify or superblock teardown paths
- Audit kernel crash dumps for faulting addresses that resolve into freed superblock memory
- Track unprivileged processes that rapidly mount, watch, and unmount tmpfs instances in tight loops
Monitoring Recommendations
- Enable kernel audit rules for mount, umount, inotify_add_watch, and fanotify_mark syscalls on production hosts
- Correlate kernel oops events with process ancestry to identify low-privileged accounts triggering fsnotify paths
- Baseline the frequency of superblock teardown events and alert on statistical anomalies
How to Mitigate CVE-2024-53143
Immediate Actions Required
- Inventory Linux hosts and identify kernels that do not include commits 21d1b618, 45a8f823, or 83af1cfa
- Apply the stable kernel update from your distribution vendor as soon as it becomes available
- Restrict unprivileged user access to multi-tenant systems where kernel race exploitation is a realistic threat
Patch Information
The fix reorders the cleanup so that iput() completes before the watched_objects decrement, and it prevents fsnotify_put_sb_watched_objects() from dereferencing an already-freed superblock. The upstream commits are available at Kernel Git Commit 21d1b61, Kernel Git Commit 45a8f82, and Kernel Git Commit 83af1cf. Rebuild and reboot into the patched kernel to apply the fix.
Workarounds
- Disable or restrict unprivileged user namespaces where feasible to limit tmpfs mount abuse by low-privileged users
- Limit the ability of unprivileged processes to create new mounts via mount namespace restrictions or seccomp policy
- Reduce exposure by removing shell access for untrusted local accounts on sensitive multi-tenant hosts
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

