CVE-2024-26685
nilfs2: fix potential bug in end_buffer_async_write
Check your servers for CVE-2024-26685
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-26685 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 potential bug in end_buffer_async_write
According to a syzbot report, end_buffer_async_write(), which handles the completion of block device writes, may detect abnormal condition of the buffer async_write flag and cause a BUG_ON failure when using nilfs2.
Nilfs2 itself does not use end_buffer_async_write(). But, the async_write flag is now used as a marker by commit 7f42ec394156 ("nilfs2: fix issue with race condition of competition between segments for dirty blocks") as a means of resolving double list insertion of dirty blocks in nilfs_lookup_dirty_data_buffers() and nilfs_lookup_node_buffers() and the resulting crash.
This modification is safe as long as it is used for file data and b-tree node blocks where the page caches are independent. However, it was irrelevant and redundant to also introduce async_write for segment summary and super root blocks that share buffers with the backing device. This led to the possibility that the BUG_ON check in end_buffer_async_write would fail as described above, if independent writebacks of the backing device occurred in parallel.
The use of async_write for segment summary buffers has already been removed in a previous change.
Fix this issue by removing the manipulation of the async_write flag for the remaining super root block buffer.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 3 Apr 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 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before c4a09fdac625e64abe478dcf88bfa20406616928 affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before d31c8721e816eff5ca6573cc487754f357c093cd affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before f3e4963566f58726d3265a727116a42b591f6596 affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before 8fa90634ec3e9cc50f42dd605eec60f2d146ced8 affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before 2c3bdba00283a6c7a5b19481a59a730f46063803 affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before 626daab3811b772086aef1bf8eed3ffe6f523eff affected from 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, before 5bc09b397cbf1221f8a8aacb1152650c9195b02b affected ccebcc74c81d8399c7b204aea47c1f33b09c2b17 affected 831c87640d23ccb253a02e4901bd9a325b5e8c2d affected d8974c7fe717ee8fb0706e35cc92e0bcdf660ec5 affected 8f67918af09fc0ffd426a9b6f87697976d3fbc7b affected from 3.2.52, before 3.3 affected from 3.4.83, before 3.5 affected from 3.10.16, before 3.11 affected from 3.11.5, before 3.12
Other versions: unaffected
|
| Linux |
affected 3.12 unaffected before 3.12 unaffected from 4.19.307 up to and including 4.19.* unaffected from 5.4.269 up to and including 5.4.* unaffected from 5.10.210 up to and including 5.10.* unaffected from 5.15.149 up to and including 5.15.* unaffected from 6.1.79 up to and including 6.1.* unaffected from 6.6.18 up to and including 6.6.* unaffected from 6.7.6 up to and including 6.7.* unaffected 6.8 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-26685 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-26685
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-26685
trivy image --scanners vuln IMAGE | grep CVE-2024-26685
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/c4a09fdac625e64abe478dcf88bfa20406616928 git.kernel.org
- https://git.kernel.org/stable/c/d31c8721e816eff5ca6573cc487754f357c093cd git.kernel.org
- https://git.kernel.org/stable/c/f3e4963566f58726d3265a727116a42b591f6596 git.kernel.org
- https://git.kernel.org/stable/c/8fa90634ec3e9cc50f42dd605eec60f2d146ced8 git.kernel.org
- https://git.kernel.org/stable/c/6589f0f72f8edd1fa11adce4eedbd3615f2e78ab git.kernel.org
- https://git.kernel.org/stable/c/2c3bdba00283a6c7a5b19481a59a730f46063803 git.kernel.org
- https://git.kernel.org/stable/c/626daab3811b772086aef1bf8eed3ffe6f523eff git.kernel.org
- https://git.kernel.org/stable/c/5bc09b397cbf1221f8a8aacb1152650c9195b02b git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html lists.debian.org
Source: the record CVE-2024-26685 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