VDB

CVE-2024-47660

CVE-2024-47660 PUBLISHED

fsnotify: clear PARENT_WATCHED flags lazily

Reported by linux · Published October 9, 2024

In the Linux kernel, the following vulnerability has been resolved: fsnotify: clear PARENT_WATCHED flags lazily In some setups directories can have many (usually negative) dentries. Hence __fsnotify_update_child_dentry_flags() function can take a significant amount of time. Since the bulk of this function happens under inode->i_lock this causes a significant contention on the lock when we remove the watch from the directory as the __fsnotify_update_child_dentry_flags() call from fsnotify_recalc_mask() races with __fsnotify_update_child_dentry_flags() calls from __fsnotify_parent() happening on children. This can lead upto softlockup reports reported by users. Fix the problem by calling fsnotify_update_children_dentry_flags() to set PARENT_WATCHED flags only when parent starts watching children. When parent stops watching children, clear false positive PARENT_WATCHED flags lazily in __fsnotify_parent() for each accessed child.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernelAmazon Linux6.1.109-118.189.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.109-118.189.amzn2023
SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 familySiemens3.2

Affected products

VendorProductVersions
LinuxLinux873feea09ebc980cbd3631b767356ce1eee65ec1, 873feea09ebc980cbd3631b767356ce1eee65ec1, 873feea09ebc980cbd3631b767356ce1eee65ec1
LinuxLinux2.6.38, 0, 5.10.226
amazon:2023kernel0
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
amazon:2023kernel-modules-extra-common0
linuxlinux_kernel2.6.38, 2.6.38, 2.6.38
amazon:2023kernel-headers0
amazon:2023kernel-devel0
LinuxLinux873feea09ebc980cbd3631b767356ce1eee65ec1, 6.1.109, 873feea09ebc980cbd3631b767356ce1eee65ec1
amazon:2023kernel-livepatch-6.1.109-118.1890
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0
amazon:2023kernel-modules-extra0
SiemensRUGGEDCOM RST2428P0
amazon:2023kernel-libbpf0
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf0
amazon:2023bpftool0
amazon:2023kernel-tools0
amazon:2023perf0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0

…and 2 more

Timeline

  • Oct 2, 2024 CVE Published
  • Oct 10, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 14, 2024 Coalition ESS Score (10 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 3, 2026 Security Advisory (115 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (102 in total, the first dated here)
  • Nov 15, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-47660
vulnetix vdb fixes CVE-2024-47660

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-47660/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›