Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-99642

published

mm/gup: check folio->mapping under folio lock in memfd_pin_folios()

Published
20 Nov 2026, 05:49:57 UTC
Updated
20 Nov 2026, 05:49:57 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

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.

Affected vendor and product assertions
VendorProductVersion statusSource
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

0

No weakness assertions.

References

4

Provider assertions

1

Linux · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected