# CVE-2026-99642: mm/gup: check folio-\>mapping under folio lock in memfd\_pin\_folios()

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-28)
- **Published:** 2026-11-20T05:49:57.651Z
- **Modified:** 2026-11-20T06:17:57.663Z

## Who should check

- Anyone running Linux \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 240bc9b873d3522672db13ea93ec73b7f0461912; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 4480eb27975b91a28bc058a2ca16f466ebd9d7cd; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 6ac69b444b85d0e511d9bc15f586ebeed49322fa; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 71555ae8c7572fd99158013ca2e29187c5d2508d
- Anyone running Linux 6.11

## Description

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

mm/gup: check folio-\>mapping under folio lock in memfd\_pin\_folios()

memfd\_pin\_folios() pins folios from the page cache without taking the
folio lock. khugepaged or MADV\_COLLAPSE can therefore replace a folio
after checking its refcount while memfd\_pin\_folios() still pins the old
folio. The caller then receives a folio which is no longer part of the
memfd.

For udmabuf and iommufd, this can cause data corruption: DMA accesses
the detached folio rather than the live memfd contents. DMA reads can
return stale data, while DMA writes update the detached copy and are
lost from the live memfd. The detached folio remains pinned, so these
accesses do not constitute a use-after-free or target another
application's memory. For memfd live update, the stale contents can
reappear in the memfd after handover.

Lock the folio and recheck folio-\>mapping before pinning it, like other
page cache users do. If the folio was removed, retry the folio lookup
from the index that was removed.

## Affected and fixed versions

- Linux: \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 240bc9b873d3522672db13ea93ec73b7f0461912; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 4480eb27975b91a28bc058a2ca16f466ebd9d7cd; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 6ac69b444b85d0e511d9bc15f586ebeed49322fa; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 71555ae8c7572fd99158013ca2e29187c5d2508d (cvelist)
- Linux: 6.11 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-99642.md
Affected: Linux >= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, < 240bc9b873d3522672db13ea93ec73b7f0461912; >= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, < 4480eb27975b91a28bc058a2ca16f466ebd9d7cd; >= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, < 6ac69b444b85d0e511d9bc15f586ebeed49322fa; >= 89c1905d9c140372b7f50ef…
Fixed in: Linux 240bc9b873d3522672db13ea93ec73b7f0461912, Linux 4480eb27975b91a28bc058a2ca16f466ebd9d7cd, Linux 6ac69b444b85d0e511d9bc15f586ebeed49322fa, Linux 71555ae8c7572fd99158013ca2e29187c5d2508d

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 240bc9b873d3522672db13ea93ec73b7f0461912; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 4480eb27975b91a28bc058a2ca16f466ebd9d7cd; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 6ac69b444b85d0e511d9bc15f586ebeed49322fa; \>= 89c1905d9c140372b7f50ef48f42378cf85d9bc5, \< 71555ae8c7572fd99158013ca2e29187c5d2508d; Linux 6.11.

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

Yes. Fixed in Linux 240bc9b873d3522672db13ea93ec73b7f0461912, Linux 4480eb27975b91a28bc058a2ca16f466ebd9d7cd, Linux 6ac69b444b85d0e511d9bc15f586ebeed49322fa, Linux 71555ae8c7572fd99158013ca2e29187c5d2508d. Upgrade Linux to 71555ae8c7572fd99158013ca2e29187c5d2508d or later.

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

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/240bc9b873d3522672db13ea93ec73b7f0461912>
- other: <https://git.kernel.org/stable/c/4480eb27975b91a28bc058a2ca16f466ebd9d7cd>
- other: <https://git.kernel.org/stable/c/6ac69b444b85d0e511d9bc15f586ebeed49322fa>
- other: <https://git.kernel.org/stable/c/71555ae8c7572fd99158013ca2e29187c5d2508d>

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

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