{"api_version":"1","generated_at":"2026-11-30T14:11:28+00:00","cve":"CVE-2026-99642","urls":{"html":"https://cve.report/CVE-2026-99642","api":"https://cve.report/api/cve/CVE-2026-99642.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99642","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99642"},"summary":{"title":"mm/gup: check folio->mapping under folio lock in memfd_pin_folios()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: check folio->mapping under folio lock in memfd_pin_folios()\n\nmemfd_pin_folios() pins folios from the page cache without taking the\nfolio lock. khugepaged or MADV_COLLAPSE can therefore replace a folio\nafter checking its refcount while memfd_pin_folios() still pins the old\nfolio. The caller then receives a folio which is no longer part of the\nmemfd.\n\nFor udmabuf and iommufd, this can cause data corruption: DMA accesses\nthe detached folio rather than the live memfd contents. DMA reads can\nreturn stale data, while DMA writes update the detached copy and are\nlost from the live memfd. The detached folio remains pinned, so these\naccesses do not constitute a use-after-free or target another\napplication's memory. For memfd live update, the stale contents can\nreappear in the memfd after handover.\n\nLock the folio and recheck folio->mapping before pinning it, like other\npage cache users do. If the folio was removed, retry the folio lookup\nfrom the index that was removed.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:17:57","updated_at":"2026-11-20 06:17:57"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/240bc9b873d3522672db13ea93ec73b7f0461912","name":"https://git.kernel.org/stable/c/240bc9b873d3522672db13ea93ec73b7f0461912","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6ac69b444b85d0e511d9bc15f586ebeed49322fa","name":"https://git.kernel.org/stable/c/6ac69b444b85d0e511d9bc15f586ebeed49322fa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/71555ae8c7572fd99158013ca2e29187c5d2508d","name":"https://git.kernel.org/stable/c/71555ae8c7572fd99158013ca2e29187c5d2508d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4480eb27975b91a28bc058a2ca16f466ebd9d7cd","name":"https://git.kernel.org/stable/c/4480eb27975b91a28bc058a2ca16f466ebd9d7cd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99642","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99642","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 89c1905d9c140372b7f50ef48f42378cf85d9bc5 240bc9b873d3522672db13ea93ec73b7f0461912 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 89c1905d9c140372b7f50ef48f42378cf85d9bc5 4480eb27975b91a28bc058a2ca16f466ebd9d7cd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 89c1905d9c140372b7f50ef48f42378cf85d9bc5 6ac69b444b85d0e511d9bc15f586ebeed49322fa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 89c1905d9c140372b7f50ef48f42378cf85d9bc5 71555ae8c7572fd99158013ca2e29187c5d2508d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.11","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.11 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"99642","cve":"CVE-2026-99642","epss":"0.001680000","percentile":"0.061660000","score_date":"2026-11-22","updated_at":"2026-11-23 00:03:21"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["mm/gup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"240bc9b873d3522672db13ea93ec73b7f0461912","status":"affected","version":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","versionType":"git"},{"lessThan":"4480eb27975b91a28bc058a2ca16f466ebd9d7cd","status":"affected","version":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","versionType":"git"},{"lessThan":"6ac69b444b85d0e511d9bc15f586ebeed49322fa","status":"affected","version":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","versionType":"git"},{"lessThan":"71555ae8c7572fd99158013ca2e29187c5d2508d","status":"affected","version":"89c1905d9c140372b7f50ef48f42378cf85d9bc5","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["mm/gup.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.11"},{"lessThan":"6.11","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.11","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.11","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: check folio->mapping under folio lock in memfd_pin_folios()\n\nmemfd_pin_folios() pins folios from the page cache without taking the\nfolio lock. khugepaged or MADV_COLLAPSE can therefore replace a folio\nafter checking its refcount while memfd_pin_folios() still pins the old\nfolio. The caller then receives a folio which is no longer part of the\nmemfd.\n\nFor udmabuf and iommufd, this can cause data corruption: DMA accesses\nthe detached folio rather than the live memfd contents. DMA reads can\nreturn stale data, while DMA writes update the detached copy and are\nlost from the live memfd. The detached folio remains pinned, so these\naccesses do not constitute a use-after-free or target another\napplication's memory. For memfd live update, the stale contents can\nreappear in the memfd after handover.\n\nLock the folio and recheck folio->mapping before pinning it, like other\npage cache users do. If the folio was removed, retry the folio lookup\nfrom the index that was removed."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:49:57.651Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/240bc9b873d3522672db13ea93ec73b7f0461912"},{"url":"https://git.kernel.org/stable/c/4480eb27975b91a28bc058a2ca16f466ebd9d7cd"},{"url":"https://git.kernel.org/stable/c/6ac69b444b85d0e511d9bc15f586ebeed49322fa"},{"url":"https://git.kernel.org/stable/c/71555ae8c7572fd99158013ca2e29187c5d2508d"}],"title":"mm/gup: check folio->mapping under folio lock in memfd_pin_folios()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99642","datePublished":"2026-11-20T05:49:57.651Z","dateReserved":"2026-09-25T10:25:14.426Z","dateUpdated":"2026-11-20T05:49:57.651Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:17:57","lastModifiedDate":"2026-11-20 06:17:57","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99642","Ordinal":"1","Title":"mm/gup: check folio->mapping under folio lock in memfd_pin_folio","CVE":"CVE-2026-99642","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99642","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmm/gup: check folio->mapping under folio lock in memfd_pin_folios()\n\nmemfd_pin_folios() pins folios from the page cache without taking the\nfolio lock. khugepaged or MADV_COLLAPSE can therefore replace a folio\nafter checking its refcount while memfd_pin_folios() still pins the old\nfolio. The caller then receives a folio which is no longer part of the\nmemfd.\n\nFor udmabuf and iommufd, this can cause data corruption: DMA accesses\nthe detached folio rather than the live memfd contents. DMA reads can\nreturn stale data, while DMA writes update the detached copy and are\nlost from the live memfd. The detached folio remains pinned, so these\naccesses do not constitute a use-after-free or target another\napplication's memory. For memfd live update, the stale contents can\nreappear in the memfd after handover.\n\nLock the folio and recheck folio->mapping before pinning it, like other\npage cache users do. If the folio was removed, retry the folio lookup\nfrom the index that was removed.","Type":"Description","Title":"mm/gup: check folio->mapping under folio lock in memfd_pin_folio"}]}}}