# CVE-2024-26685: nilfs2: fix potential bug in end\_buffer\_async\_write

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-03T14:54:47.688Z
- **Modified:** 2026-06-17T07:18:05.510Z

## Who should check

- Anyone running Linux \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< c4a09fdac625e64abe478dcf88bfa20406616928; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< d31c8721e816eff5ca6573cc487754f357c093cd; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< f3e4963566f58726d3265a727116a42b591f6596; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 8fa90634ec3e9cc50f42dd605eec60f2d146ced8; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 2c3bdba00283a6c7a5b19481a59a730f46063803; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 626daab3811b772086aef1bf8eed3ffe6f523eff; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 5bc09b397cbf1221f8a8aacb1152650c9195b02b; ccebcc74c81d8399c7b204aea47c1f33b09c2b17; 831c87640d23ccb253a02e4901bd9a325b5e8c2d; …
- Anyone running Linux 3.12

## 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 and fixed versions

- Linux: \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< c4a09fdac625e64abe478dcf88bfa20406616928; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< d31c8721e816eff5ca6573cc487754f357c093cd; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< f3e4963566f58726d3265a727116a42b591f6596; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 8fa90634ec3e9cc50f42dd605eec60f2d146ced8; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 2c3bdba00283a6c7a5b19481a59a730f46063803; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 626daab3811b772086aef1bf8eed3ffe6f523eff; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 5bc09b397cbf1221f8a8aacb1152650c9195b02b; ccebcc74c81d8399c7b204aea47c1f33b09c2b17; 831c87640d23ccb253a02e4901bd9a325b5e8c2d; … (cvelist)
- Linux: 3.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26685. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26685.md
Affected: Linux >= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, < c4a09fdac625e64abe478dcf88bfa20406616928; >= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, < d31c8721e816eff5ca6573cc487754f357c093cd; >= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, < f3e4963566f58726d3265a727116a42b591f6596; >= 7f42ec3941560f0902fe367…
Fixed in: Linux 8fa90634ec3e9cc50f42dd605eec60f2d146ced8, Linux 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab, Linux 2c3bdba00283a6c7a5b19481a59a730f46063803, Linux 626daab3811b772086aef1bf8eed3ffe6f523eff, Linux 5bc09b397cbf1221f8a8aacb1152650c9195b02b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26685 being exploited?

There is no confirmed exploitation: CVE-2024-26685 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26685?

Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26685?

Linux \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< c4a09fdac625e64abe478dcf88bfa20406616928; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< d31c8721e816eff5ca6573cc487754f357c093cd; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< f3e4963566f58726d3265a727116a42b591f6596; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 8fa90634ec3e9cc50f42dd605eec60f2d146ced8; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 2c3bdba00283a6c7a5b19481a59a730f46063803; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 626daab3811b772086aef1bf8eed3ffe6f523eff; \>= 7f42ec3941560f0902fe3671e36f2c20ffd3af0a, \< 5bc09b397cbf1221f8a8aacb1152650c9195b02b; ccebcc74c81d8399c7b204aea47c1f33b09c2b17; 831c87640d23ccb253a02e4901bd9a325b5e8c2d; …; Linux 3.12.

### Is there a fix for CVE-2024-26685?

Yes. Fixed in Linux 8fa90634ec3e9cc50f42dd605eec60f2d146ced8, Linux 6589f0f72f8edd1fa11adce4eedbd3615f2e78ab, Linux 2c3bdba00283a6c7a5b19481a59a730f46063803, Linux 626daab3811b772086aef1bf8eed3ffe6f523eff, Linux 5bc09b397cbf1221f8a8aacb1152650c9195b02b. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-26685?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/c4a09fdac625e64abe478dcf88bfa20406616928>
- patch: <https://git.kernel.org/stable/c/d31c8721e816eff5ca6573cc487754f357c093cd>
- patch: <https://git.kernel.org/stable/c/f3e4963566f58726d3265a727116a42b591f6596>
- patch: <https://git.kernel.org/stable/c/8fa90634ec3e9cc50f42dd605eec60f2d146ced8>
- patch: <https://git.kernel.org/stable/c/6589f0f72f8edd1fa11adce4eedbd3615f2e78ab>
- patch: <https://git.kernel.org/stable/c/2c3bdba00283a6c7a5b19481a59a730f46063803>
- patch: <https://git.kernel.org/stable/c/626daab3811b772086aef1bf8eed3ffe6f523eff>
- patch: <https://git.kernel.org/stable/c/5bc09b397cbf1221f8a8aacb1152650c9195b02b>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26685>

HTML: <https://flawdb.com/CVE-2024-26685> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26685>
