# CVE-2026-89836: f2fs: fix folio\_nr\_pages() race after put in large folio invalidate

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 3, 2026-11-26)
- **Published:** 2026-09-16T10:31:10.233Z
- **Modified:** 2026-10-19T09:18:27.510Z

## Who should check

- Anyone running Linux \>= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, \< cc34df18da92f68f9b384c3ae95ad64be46cb5ee; \>= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, \< 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082
- Anyone running Linux 7.0

## Description

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

f2fs: fix folio\_nr\_pages() race after put in large folio invalidate

Our v6.18 based Android system is continuely suffering livelock and bad
page stat as shown in\[1\] which related to broken xarray slot status. By
investigating big folio operations within f2fs, we find below races and
fix it by get the nr\_pages before drop the refcount and folio\_lock.

f2fs\_get\_read\_data\_folio() calls f2fs\_folio\_put() before
folio\_nr\_pages() when invalidating a large folio from the page cache.
That unlocks the folio and drops the caller reference, leaving a window
where a concurrent truncate or folio split can shrink the compound folio
or free it before the invalidate range is computed. An undersized range
then leaves split sub-folios in mapping-\>i\_pages, which can later
interact badly with truncate and reclaim (stale xarray entries and bad
page state when folio-\>mapping no longer matches the mapping being
truncated).

\[1\]
PID: 2594     TASK: ffffff8169b81580  CPU: 7    COMMAND: "Thread-3"
 \#0 \[ffffffc08ef2b8a0\] xas\_load at ffffffe52d1f42a4
 \#1 \[ffffffc08ef2b900\] find\_get\_entries at ffffffe52c185798
 \#2 \[ffffffc08ef2bb60\] truncate\_inode\_pages\_range at ffffffe52c19e83c
 \#3 \[ffffffc08ef2bbc0\] truncate\_inode\_pages\_final at ffffffe52c19ec2c
 \#4 \[ffffffc08ef2bc20\] f2fs\_evict\_inode at ffffffe52c4c8400
 \#5 \[ffffffc08ef2bcc0\] evict at ffffffe52c2de9f4
 \#6 \[ffffffc08ef2bd00\] iput at ffffffe52c2db1b4
 \#7 \[ffffffc08ef2bd30\] dentry\_unlink\_inode at ffffffe52c2d7204
 \#8 \[ffffffc08ef2bd50\] \_\_dentry\_kill at ffffffe52c2d3dcc
 \#9 \[ffffffc08ef2bd80\] dput at ffffffe52c2d3c3c
 \#10 \[ffffffc08ef2bda0\] \_\_fput at ffffffe52c2b0a7c
 \#11 \[ffffffc08ef2bde0\] \_\_\_\_fput at ffffffe52c2b1034
 \#12 \[ffffffc08ef2bdf0\] task\_work\_run at ffffffe52beea200
 \#13 \[ffffffc08ef2be20\] exit\_to\_user\_mode\_loop at ffffffe52bfbc17c
 \#14 \[ffffffc08ef2be80\] el0\_svc at ffffffe52d1f8e54
 \#15 \[ffffffc08ef2beb0\] el0t\_64\_sync\_handler at ffffffe52d1f8d10

## Affected and fixed versions

- Linux: \>= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, \< cc34df18da92f68f9b384c3ae95ad64be46cb5ee; \>= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, \< 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

- Upgrade Linux to 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89836.md
Affected: Linux >= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, < cc34df18da92f68f9b384c3ae95ad64be46cb5ee; >= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, < 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082; Linux 7.0
Fixed in: Linux 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082

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-2026-89836 being exploited?

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

### How serious is CVE-2026-89836?

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

### Which versions are affected by CVE-2026-89836?

Linux \>= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, \< cc34df18da92f68f9b384c3ae95ad64be46cb5ee; \>= 05e65c14ea59a401cec4284e9d612f9d5dc1b3f8, \< 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082; Linux 7.0.

### Is there a fix for CVE-2026-89836?

Yes. Fixed in Linux 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082. Upgrade Linux to 0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082 or later.

### How do I check if I'm affected by CVE-2026-89836?

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

- other: <https://git.kernel.org/stable/c/cc34df18da92f68f9b384c3ae95ad64be46cb5ee>
- other: <https://git.kernel.org/stable/c/0dab71381f1b4d12dc2056f8bd5aaa9d93ce9082>

## 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-2026-89836>

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