CVE-2024-26685 json
nilfs2: fix potential bug in end_buffer_async_write
published 2024-04-03 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-23947
- cvss
- 5.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 16%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 3.3, 3.5, 3.11, 3.12, 4.19.307, 5.4.269, 5.10.210, 5.15.149, 6.1.79, 6.6.18, 6.7.6, 6.8
- linux Debian 12 6.1.82-1
- linux Debian 14, Debian 13 6.7.7-1
debian advisories DEBIAN-CVE-2024-26685
- linux Ubuntu 20.04 LTS 5.4.0-181.201
- linux Ubuntu 22.04 LTS 5.15.0-106.116
- linux-aws Ubuntu 20.04 LTS 5.4.0-1124.134
- linux-aws Ubuntu 22.04 LTS 5.15.0-1061.67
- linux-gcp Ubuntu 20.04 LTS 5.4.0-1128.137
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1059.67
- linux-gke Ubuntu 22.04 LTS 5.15.0-1058.63
- linux-ibm Ubuntu 20.04 LTS 5.4.0-1071.76
ubuntu advisories UBUNTU-CVE-2024-26685
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source Linux Micro 6.0 6.4.0-18.1
- kernel-default Linux Micro 6.0 6.4.0-18.1
- kernel-kvmsmall Linux Micro 6.0 6.4.0-18.1
- kernel-default-base Linux Micro 6.0 6.4.0-17.1.1.51
- kernel-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-syms-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-rt_debug Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
- kernel-source-rt Real Time Module 15 SP6, openSUSE Leap 15.6 6.4.0-150600.10.5.1
suse advisories SUSE-SU-2025:20008-1SUSE-SU-2024:2973-1SUSE-SU-2024:2203-1SUSE-SU-2024:2135-1SUSE-SU-2024:1663-1SUSE-SU-2024:1659-1
- git.kernel.org/stable/c/c4a09fdac625e64abe478dcf88bfa20406616928 commit
- git.kernel.org/stable/c/d31c8721e816eff5ca6573cc487754f357c093cd commit
- git.kernel.org/stable/c/f3e4963566f58726d3265a727116a42b591f6596 commit
- git.kernel.org/stable/c/8fa90634ec3e9cc50f42dd605eec60f2d146ced8 commit
- git.kernel.org/stable/c/6589f0f72f8edd1fa11adce4eedbd3615f2e78ab commit
- git.kernel.org/stable/c/2c3bdba00283a6c7a5b19481a59a730f46063803 commit
- git.kernel.org/stable/c/626daab3811b772086aef1bf8eed3ffe6f523eff commit
- git.kernel.org/stable/c/5bc09b397cbf1221f8a8aacb1152650c9195b02b commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-26685 updated cvss 5.5
kernel: nilfs2: fix potential bug in end_buffer_async_write
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
cisa ICSA-25-226-15 updated
Siemens SINEC OS
-
Siemens RUGGEDCOM RST2428P (6GK6242-6PA00) Siemens SCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family Siemens SCALANCE XCM-/XRM-/XCH-/XRH-300 familynot affected
Facts from CISA's republication of the vendor's own advisory (CSAF); the linked advisory is the authoritative source. CISA notification · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.25% chance of exploitation in the next 30 days, higher than 16% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
- Technology feeds
References
-
git.kernel.org
/stable/c/c4a09fdac625e64abe478dcf88bfa20406616928
patch
-
git.kernel.org
/stable/c/d31c8721e816eff5ca6573cc487754f357c093cd
patch
-
git.kernel.org
/stable/c/f3e4963566f58726d3265a727116a42b591f6596
patch
-
git.kernel.org
/stable/c/8fa90634ec3e9cc50f42dd605eec60f2d146ced8
patch
-
git.kernel.org
/stable/c/6589f0f72f8edd1fa11adce4eedbd3615f2e78ab
patch
-
git.kernel.org
/stable/c/2c3bdba00283a6c7a5b19481a59a730f46063803
patch
-
git.kernel.org
/stable/c/626daab3811b772086aef1bf8eed3ffe6f523eff
patch
-
git.kernel.org
/stable/c/5bc09b397cbf1221f8a8aacb1152650c9195b02b
patch
-
lists.debian.org
/debian-lts-announce/2024/06/msg00017.html
mailing-list, third-party-advisory
-
lists.debian.org
/debian-lts-announce/2024/06/msg00020.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2024-26685
- NVD CVE-2024-26685
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.