CVE-2024-47660
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel | Amazon Linux | 6.1.109-118.189.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.109-118.189.amzn2023 |
| SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | Siemens | 3.2 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 873feea09ebc980cbd3631b767356ce1eee65ec1, 873feea09ebc980cbd3631b767356ce1eee65ec1, 873feea09ebc980cbd3631b767356ce1eee65ec1 |
| Linux | Linux | 2.6.38, 0, 5.10.226 |
| amazon:2023 | kernel | 0 |
| Siemens | SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| linux | linux_kernel | 2.6.38, 2.6.38, 2.6.38 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-devel | 0 |
| Linux | Linux | 873feea09ebc980cbd3631b767356ce1eee65ec1, 6.1.109, 873feea09ebc980cbd3631b767356ce1eee65ec1 |
| amazon:2023 | kernel-livepatch-6.1.109-118.189 | 0 |
| Siemens | SCALANCE XCM-/XRM-/XCH-/XRH-300 family | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| Siemens | RUGGEDCOM RST2428P | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | perf | 0 |
| Siemens | SIMATIC S7-1500 TM MFP - GNU/Linux subsystem | 0 |
…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