CVE-2024-41074
cachefiles: Set object to close if ondemand_id < 0 in copen
Check your servers for CVE-2024-41074
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-41074 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:
cachefiles: Set object to close if ondemand_id < 0 in copen
If copen is maliciously called in the user mode, it may delete the request corresponding to the random id. And the request may have not been read yet.
Note that when the object is set to reopen, the open request will be done with the still reopen state in above case. As a result, the request corresponding to this object is always skipped in select_req function, so the read request is never completed and blocks other process.
Fix this issue by simply set object to close if its id < 0 in copen.
Exploitation
EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.3% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 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 c8383054506c77b814489c09877b5db83fd4abf2, before 703bea37d13e4ccdafd17ae7c4cb583752ba7663 affected from c8383054506c77b814489c09877b5db83fd4abf2, before c32ee78fbc670e6f90989a45d340748e34cad333 affected from c8383054506c77b814489c09877b5db83fd4abf2, before 0845c553db11c84ff53fccd59da11b6d6ece4a60 affected from c8383054506c77b814489c09877b5db83fd4abf2, before 4f8703fb3482f92edcfd31661857b16fec89c2c0
Other versions: unaffected
|
| Linux |
affected 5.19 unaffected before 5.19 unaffected from 6.1.101 up to and including 6.1.* unaffected from 6.6.42 up to and including 6.6.* unaffected from 6.9.11 up to and including 6.9.* unaffected 6.10 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-41074 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-41074
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-41074
trivy image --scanners vuln IMAGE | grep CVE-2024-41074
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/703bea37d13e4ccdafd17ae7c4cb583752ba7663 git.kernel.org
- https://git.kernel.org/stable/c/c32ee78fbc670e6f90989a45d340748e34cad333 git.kernel.org
- https://git.kernel.org/stable/c/0845c553db11c84ff53fccd59da11b6d6ece4a60 git.kernel.org
- https://git.kernel.org/stable/c/4f8703fb3482f92edcfd31661857b16fec89c2c0 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-41074 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