# CVE-2024-26696: nilfs2: fix hang in nilfs\_lookup\_dirty\_data\_buffers()

> 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, NVD) `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.24% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-04-03T14:54:56.926Z
- **Modified:** 2026-06-17T07:18:07.193Z

## Who should check

- Anyone running Linux \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 228742b2ddfb99dfd71e5a307e6088ab6836272e; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 862ee4422c38be5c249844a684b00d0dbe9d1e46; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 98a4026b22ff440c7f47056481bcbbe442f607d6; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 7e9b622bd0748cc104d66535b76d9b3535f9dc0f; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 8494ba2c9ea00a54d5b50e69b22c55a8958bce32; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< ea5ddbc11613b55e5128c85f57b08f907abd9b28; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< e38585401d464578d30f5868ff4ca54475c34f7d; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 38296afe3c6ee07319e01bb249aa4bb47c07b534
- Anyone running Linux 3.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

nilfs2: fix hang in nilfs\_lookup\_dirty\_data\_buffers()

Syzbot reported a hang issue in migrate\_pages\_batch() called by mbind()
and nilfs\_lookup\_dirty\_data\_buffers() called in the log writer of nilfs2.

While migrate\_pages\_batch() locks a folio and waits for the writeback to
complete, the log writer thread that should bring the writeback to
completion picks up the folio being written back in
nilfs\_lookup\_dirty\_data\_buffers() that it calls for subsequent log
creation and was trying to lock the folio.  Thus causing a deadlock.

In the first place, it is unexpected that folios/pages in the middle of
writeback will be updated and become dirty.  Nilfs2 adds a checksum to
verify the validity of the log being written and uses it for recovery at
mount, so data changes during writeback are suppressed.  Since this is
broken, an unclean shutdown could potentially cause recovery to fail.

Investigation revealed that the root cause is that the wait for writeback
completion in nilfs\_page\_mkwrite() is conditional, and if the backing
device does not require stable writes, data may be modified without
waiting.

Fix these issues by making nilfs\_page\_mkwrite() wait for writeback to
finish regardless of the stable write requirement of the backing device.

## Affected and fixed versions

- Linux: \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 228742b2ddfb99dfd71e5a307e6088ab6836272e; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 862ee4422c38be5c249844a684b00d0dbe9d1e46; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 98a4026b22ff440c7f47056481bcbbe442f607d6; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 7e9b622bd0748cc104d66535b76d9b3535f9dc0f; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 8494ba2c9ea00a54d5b50e69b22c55a8958bce32; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< ea5ddbc11613b55e5128c85f57b08f907abd9b28; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< e38585401d464578d30f5868ff4ca54475c34f7d; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 38296afe3c6ee07319e01bb249aa4bb47c07b534 (cvelist)
- Linux: 3.9 (cvelist)

## Mitigation

- Upgrade Linux to 38296afe3c6ee07319e01bb249aa4bb47c07b534 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-26696.md
Affected: Linux >= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, < 228742b2ddfb99dfd71e5a307e6088ab6836272e; >= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, < 862ee4422c38be5c249844a684b00d0dbe9d1e46; >= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, < 98a4026b22ff440c7f47056481bcbbe442f607d6; >= 1d1d1a767206fbe5d4c6949…
Fixed in: Linux 228742b2ddfb99dfd71e5a307e6088ab6836272e, Linux 862ee4422c38be5c249844a684b00d0dbe9d1e46, Linux 98a4026b22ff440c7f47056481bcbbe442f607d6, Linux 7e9b622bd0748cc104d66535b76d9b3535f9dc0f, Linux 8494ba2c9ea00a54d5b50e69b22c55a8958bce32, Linux 38296afe3c6ee07319e01bb249aa4bb47c07b534

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-26696 being exploited?

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

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

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

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

Linux \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 228742b2ddfb99dfd71e5a307e6088ab6836272e; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 862ee4422c38be5c249844a684b00d0dbe9d1e46; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 98a4026b22ff440c7f47056481bcbbe442f607d6; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 7e9b622bd0748cc104d66535b76d9b3535f9dc0f; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 8494ba2c9ea00a54d5b50e69b22c55a8958bce32; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< ea5ddbc11613b55e5128c85f57b08f907abd9b28; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< e38585401d464578d30f5868ff4ca54475c34f7d; \>= 1d1d1a767206fbe5d4c69493b7e6d2a8d08cc0a0, \< 38296afe3c6ee07319e01bb249aa4bb47c07b534; Linux 3.9.

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

Yes. Fixed in Linux 228742b2ddfb99dfd71e5a307e6088ab6836272e, Linux 862ee4422c38be5c249844a684b00d0dbe9d1e46, Linux 98a4026b22ff440c7f47056481bcbbe442f607d6, Linux 7e9b622bd0748cc104d66535b76d9b3535f9dc0f, Linux 8494ba2c9ea00a54d5b50e69b22c55a8958bce32, Linux 38296afe3c6ee07319e01bb249aa4bb47c07b534. Upgrade Linux to 38296afe3c6ee07319e01bb249aa4bb47c07b534 or later.

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

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/228742b2ddfb99dfd71e5a307e6088ab6836272e>
- patch: <https://git.kernel.org/stable/c/862ee4422c38be5c249844a684b00d0dbe9d1e46>
- patch: <https://git.kernel.org/stable/c/98a4026b22ff440c7f47056481bcbbe442f607d6>
- patch: <https://git.kernel.org/stable/c/7e9b622bd0748cc104d66535b76d9b3535f9dc0f>
- patch: <https://git.kernel.org/stable/c/8494ba2c9ea00a54d5b50e69b22c55a8958bce32>
- patch: <https://git.kernel.org/stable/c/ea5ddbc11613b55e5128c85f57b08f907abd9b28>
- patch: <https://git.kernel.org/stable/c/e38585401d464578d30f5868ff4ca54475c34f7d>
- patch: <https://git.kernel.org/stable/c/38296afe3c6ee07319e01bb249aa4bb47c07b534>
- 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-26696>

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