Junglewise Threat Intelligence

CVE-2024-47660: Linux Kernel race condition in fsnotify

CVE-2024-47660 · Severity: medium · CVSS 4.7 · Published 2024-10-09

Technologies: Linux Kernel. Vendors: Linux.

Executive brief

A vulnerability in the Linux kernel's file notification system can cause system instability or a temporary freeze. When a directory contains a very large number of files, removing a file watch can trigger a resource conflict that locks up the processor. This could allow a local user to cause a denial-of-service condition, impacting the availability of the system.

Technical details

A race condition exists in the fsnotify subsystem of the Linux kernel due to improper synchronization in __fsnotify_update_child_dentry_flags(). When a directory has many dentries, the function takes a significant amount of time to execute under the inode->i_lock. This creates contention between fsnotify_recalc_mask() and __fsnotify_parent() calls on child dentries. An attacker with local access can exploit this to trigger softlockups, leading to a denial of service. The fix implements lazy clearing of PARENT_WATCHED flags to reduce lock contention.

Affected products

  • Linux Linux Kernel up to 5.10.226, 5.11 to 5.15.167, 5.16 to 6.1.109, 6.2 to 6.6.50, 6.7 to 6.10.9

Timeline

  • 2024-10-09: disclosed
  • 2024-10-09: advisory

References

Related threats