CVE-2024-47660
fsnotify: clear PARENT_WATCHED flags lazily
Check your servers for CVE-2024-47660
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-47660 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Exploitation
EPSS 0.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 5.51% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 873feea09ebc980cbd3631b767356ce1eee65ec1, before 3f3ef1d9f66b93913ce2171120d9226b55acd41d affected from 873feea09ebc980cbd3631b767356ce1eee65ec1, before f9a48bc3dd9099935751458a5bbbea4b7c28abc8 affected from 873feea09ebc980cbd3631b767356ce1eee65ec1, before d8c42405fc3507cc43ba7e4986a773c3fc633f6e affected from 873feea09ebc980cbd3631b767356ce1eee65ec1, before fc1b1e135c3f72382f792e6c319fc088d5523ad5 affected from 873feea09ebc980cbd3631b767356ce1eee65ec1, before 7ef1d2e240c32b1f337a37232d037b07e3919e1a affected from 873feea09ebc980cbd3631b767356ce1eee65ec1, before 172e422ffea20a89bfdc672741c1aad6fbb5044e
Other versions: unaffected
|
| Linux |
affected 2.6.38 unaffected before 2.6.38 unaffected from 5.10.226 up to and including 5.10.* unaffected from 5.15.167 up to and including 5.15.* unaffected from 6.1.109 up to and including 6.1.* unaffected from 6.6.50 up to and including 6.6.* unaffected from 6.10.9 up to and including 6.10.* unaffected 6.11 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-47660 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-47660
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-47660
trivy image --scanners vuln IMAGE | grep CVE-2024-47660
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3f3ef1d9f66b93913ce2171120d9226b55acd41d git.kernel.org
- https://git.kernel.org/stable/c/f9a48bc3dd9099935751458a5bbbea4b7c28abc8 git.kernel.org
- https://git.kernel.org/stable/c/d8c42405fc3507cc43ba7e4986a773c3fc633f6e git.kernel.org
- https://git.kernel.org/stable/c/fc1b1e135c3f72382f792e6c319fc088d5523ad5 git.kernel.org
- https://git.kernel.org/stable/c/7ef1d2e240c32b1f337a37232d037b07e3919e1a git.kernel.org
- https://git.kernel.org/stable/c/172e422ffea20a89bfdc672741c1aad6fbb5044e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html cert-portal.siemens.com
Source: the record CVE-2024-47660 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse