CVE-2024-41034
nilfs2: fix kernel bug on rename operation of broken directory
Check your servers for CVE-2024-41034
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-41034 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:
nilfs2: fix kernel bug on rename operation of broken directory
Syzbot reported that in rename directory operation on broken directory on nilfs2, __block_write_begin_int() called to prepare block write may fail BUG_ON check for access exceeding the folio/page size.
This is because nilfs_dotdot(), which gets parent directory reference entry ("..") of the directory to be moved or renamed, does not check consistency enough, and may return location exceeding folio/page size for broken directories.
Fix this issue by checking required directory entries ("." and "..") in the first chunk of the directory in nilfs_dotdot().
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- required: a user has to do something, such as open a link or a file
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.32%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 27.2% 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 2ba466d74ed74f073257f86e61519cb8f8f46184, before ff9767ba2cb949701e45e6e4287f8af82986b703 affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before 24c1c8566a9b6be51f5347be2ea76e25fc82b11e affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before a9a466a69b85059b341239766a10efdd3ee68a4b affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before 7000b438dda9d0f41a956fc9bffed92d2eb6be0d affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before 1a8879c0771a68d70ee2e5e66eea34207e8c6231 affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before 60f61514374e4a0c3b65b08c6024dd7e26150bfd affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before 298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5 affected from 2ba466d74ed74f073257f86e61519cb8f8f46184, before a9e1ddc09ca55746079cc479aa3eb6411f0d99d4
Other versions: unaffected
|
| Linux |
affected 2.6.30 unaffected before 2.6.30 unaffected from 4.19.318 up to and including 4.19.* unaffected from 5.4.280 up to and including 5.4.* unaffected from 5.10.222 up to and including 5.10.* unaffected from 5.15.163 up to and including 5.15.* unaffected from 6.1.100 up to and including 6.1.* unaffected from 6.6.41 up to and including 6.6.* unaffected from 6.9.10 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-41034 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-41034
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-41034
trivy image --scanners vuln IMAGE | grep CVE-2024-41034
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/ff9767ba2cb949701e45e6e4287f8af82986b703 git.kernel.org
- https://git.kernel.org/stable/c/24c1c8566a9b6be51f5347be2ea76e25fc82b11e git.kernel.org
- https://git.kernel.org/stable/c/a9a466a69b85059b341239766a10efdd3ee68a4b git.kernel.org
- https://git.kernel.org/stable/c/7000b438dda9d0f41a956fc9bffed92d2eb6be0d git.kernel.org
- https://git.kernel.org/stable/c/1a8879c0771a68d70ee2e5e66eea34207e8c6231 git.kernel.org
- https://git.kernel.org/stable/c/60f61514374e4a0c3b65b08c6024dd7e26150bfd git.kernel.org
- https://git.kernel.org/stable/c/298cd810d7fb687c90a14d8f9fd1b8719a7cb8a5 git.kernel.org
- https://git.kernel.org/stable/c/a9e1ddc09ca55746079cc479aa3eb6411f0d99d4 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-41034 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