CVE-2026-99642
publishedmm/gup: check folio->mapping under folio lock in memfd_pin_folios()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 240bc9b873d3522672db13ea93ec73b7f0461912 · 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 4480eb27975b91a28bc058a2ca16f466ebd9d7cd · 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 6ac69b444b85d0e511d9bc15f586ebeed49322fa · 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 71555ae8c7572fd99158013ca2e29187c5d2508d · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.11 (affected) · 0 to < 6.11 (unaffected · semver) · 6.12.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.5 through 7.3.* (unaffected · semver) · 7.4-rc2 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | trixie | linux | Advisory build | 6.12.118-1 | DSA-6652-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 240bc9b873d3522672db13ea93ec73b7f0461912 (affected · git)89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 4480eb27975b91a28bc058a2ca16f466ebd9d7cd (affected · git)89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 6ac69b444b85d0e511d9bc15f586ebeed49322fa (affected · git)89c1905d9c140372b7f50ef48f42378cf85d9bc5 to < 71555ae8c7572fd99158013ca2e29187c5d2508d (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.11 (affected)0 to < 6.11 (unaffected · semver)6.12.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.5 through 7.3.* (unaffected · semver)7.4-rc2 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
4Provider assertions
1Linux · cna
mm/gup: check folio->mapping under folio lock in memfd_pin_folios()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0a7e245173a863ee65d460d980124603800e8f5756e69e58dbc208f3f48a399e
- Ingested
- 20 Nov 2026, 05:52:57 UTC
- Source record
- Official CVE record