# CVE-2026-99733: mm/truncate: look again if a folio left the mapping

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.16% (percentile 2, 2026-11-28)
- **Published:** 2026-11-20T05:51:07.545Z
- **Modified:** 2026-11-20T06:18:10.630Z

## Who should check

- Anyone running Linux \>= 1b6444331bebb4e586dab30b1fa0612ef482bab4, \< f17044fee422605d19e07c4c9f5dc2be7abd7086; \>= 1b6444331bebb4e586dab30b1fa0612ef482bab4, \< 9cf632e139737314afa889ca18122bc3fddb9120
- Anyone running Linux 7.2

## Description

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

mm/truncate: look again if a folio left the mapping

invalidate\_inode\_pages2\_range() skips a folio which no longer belongs to
the mapping by the time it has got the folio lock, on the assumption
that somebody else has removed it from the page cache. But the folio may
have been replaced, and then there is a new folio with the same data at
that index.

For most cases, like folio migration, that is impossible. However,
collapse\_file() only checks the refcount of the old folios, under the
i\_pages lock, and relies on their folio locks from there on. That works for
users which repeat the lookup when they find folio-\>mapping changed.
The following scenario is, however, possible:

  CPU0 pwrite(O\_DIRECT)               CPU1 collapse\_file()
  kiocb\_invalidate\_pages()
                                      read the folio (old data), lock it
                                      refcount check
  the write completes                 copy to new\_folio
  kiocb\_invalidate\_post\_direct\_write()
    find\_get\_entries() -\> old folio
                                      xas\_store(new\_folio)
                                      folio-\>mapping = NULL
                                      folio\_unlock(folio)
    folio\_lock()
    folio-\>mapping != mapping
      -\> continue

In that scenario, the collapsed folio with the data from before the write
stays in the page cache after the write has returned.

This used to be impossible, as khugepaged only collapsed files that nobody
had open for writing.

Restart the lookup at that index, like shmem\_undo\_range() does. The same
problem seems to exist in truncate\_inode\_pages\_range() as well when
truncate\_inode\_folio() fails, so handle it there as well, but slightly
differently: simply check once more through find\_get\_entries().

## Affected and fixed versions

- Linux: \>= 1b6444331bebb4e586dab30b1fa0612ef482bab4, \< f17044fee422605d19e07c4c9f5dc2be7abd7086; \>= 1b6444331bebb4e586dab30b1fa0612ef482bab4, \< 9cf632e139737314afa889ca18122bc3fddb9120 (cvelist)
- Linux: 7.2 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 9cf632e139737314afa889ca18122bc3fddb9120 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-99733. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-99733.md
Affected: Linux >= 1b6444331bebb4e586dab30b1fa0612ef482bab4, < f17044fee422605d19e07c4c9f5dc2be7abd7086; >= 1b6444331bebb4e586dab30b1fa0612ef482bab4, < 9cf632e139737314afa889ca18122bc3fddb9120; Linux 7.2
Fixed in: Linux 9cf632e139737314afa889ca18122bc3fddb9120

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 1b6444331bebb4e586dab30b1fa0612ef482bab4, \< f17044fee422605d19e07c4c9f5dc2be7abd7086; \>= 1b6444331bebb4e586dab30b1fa0612ef482bab4, \< 9cf632e139737314afa889ca18122bc3fddb9120; Linux 7.2.

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

Yes. Fixed in Linux 9cf632e139737314afa889ca18122bc3fddb9120. Upgrade Linux to 9cf632e139737314afa889ca18122bc3fddb9120 or later.

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

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/f17044fee422605d19e07c4c9f5dc2be7abd7086>
- other: <https://git.kernel.org/stable/c/9cf632e139737314afa889ca18122bc3fddb9120>

## 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-99733>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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