CVE-2024-26685

nilfs2: fix potential bug in end_buffer_async_write

MEDIUM
5.5
CVSS Score
Published: April 3, 2024 at 02:54 PM UTC
Updated: June 17, 2026 at 07:18 AM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 3.10.16v ≥ 3.11.5v ≥ 3.2.52v ≥ 3.4.833.10.16 ≤ v < 3.113.11.5 ≤ v < 3.123.11.5 ≤ v < 4.19.3073.12 ≤ v < 4.19.3073.12 ≤ v < 5.10.2103.12 ≤ v < 5.15.1493.12 ≤ v < 5.4.2693.12 ≤ v < 6.1.793.12 ≤ v < 6.6.183.12 ≤ v < 6.7.63.12 ≤ v < 6.83.2.52 ≤ v < 3.33.4.83 ≤ v < 3.54.20 ≤ v < 5.4.2695.11 ≤ v < 5.15.1495.16 ≤ v < 6.1.795.5 ≤ v < 5.10.2106.2 ≤ v < 6.6.186.7 ≤ v < 6.7.63.10.163.11.53.2.523.4.836.8 rc16.8 rc26.8 rc37f42ec3941560f0902fe3671e36f2c20ffd3af0a831c87640d23ccb253a02e4901bd9a325b5e8c2d8f67918af09fc0ffd426a9b6f87697976d3fbc7bccebcc74c81d8399c7b204aea47c1f33b09c2b17d8974c7fe717ee8fb0706e35cc92e0bcdf660ec5
Vendor states this is fixed in 2c3bdba00283a6c7a5b19481a59a730f46063803 (fixed)
Vendor states this is fixed in 5bc09b397cbf1221f8a8aacb1152650c9195b02b (fixed)
Vendor states this is fixed in 626daab3811b772086aef1bf8eed3ffe6f523eff (fixed)
Vendor states this is fixed in 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab (fixed)
Vendor states this is fixed in 8fa90634ec3e9cc50f42dd605eec60f2d146ced8 (fixed)
Vendor states this is fixed in c4a09fdac625e64abe478dcf88bfa20406616928 (fixed)
Vendor states this is fixed in d31c8721e816eff5ca6573cc487754f357c093cd (fixed)
Vendor states this is fixed in f3e4963566f58726d3265a727116a42b591f6596 (fixed)
Affected range stops below 3.11, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 3.12 (unaffected)
Affected range stops below 3.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.5, so it looks safe — our inference, not a vendor statement
Vendor states this is fixed in 4.19.307 (unaffected)
Vendor states this is fixed in 5.10.210 (unaffected)
Vendor states this is fixed in 5.15.149 (unaffected)
Vendor states this is fixed in 5.4.269 (unaffected)
Vendor states this is fixed in 6.1.79 (unaffected)
Vendor states this is fixed in 6.6.18 (unaffected)
Vendor states this is fixed in 6.7.6 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2c3bdba00283a6c7a5b19481a59a730f46063803
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5bc09b397cbf1221f8a8aacb1152650c9195b02b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/626daab3811b772086aef1bf8eed3ffe6f523eff
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6589f0f72f8edd1fa11adce4eedbd3615f2e78ab
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8fa90634ec3e9cc50f42dd605eec60f2d146ced8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c4a09fdac625e64abe478dcf88bfa20406616928
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d31c8721e816eff5ca6573cc487754f357c093cd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f3e4963566f58726d3265a727116a42b591f6596

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card