PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-99642 Linux CVE debrief

A Linux kernel vulnerability has been identified in the mm/gup: check folio->mapping under folio lock in memfd_pin_folios() functionality. The issue arises from memfd_pin_folios() pinning folios from the page cache without taking the folio lock, allowing khugepaged or MADV_COLLAPSE to replace a folio after checking its refcount. This can cause data corruption for udmabuf and iommufd, as DMA accesses the detached folio rather than the live memfd contents.

Vendor
Linux
Product
Unknown
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-20
Original CVE updated
2026-11-20
Advisory published
2026-11-20
Advisory updated
2026-11-20

Who should care

Defenders responsible for Linux kernel maintenance and security, Linux kernel developers, Linux distribution maintainers, and security teams should assess exposure and prioritize patching vulnerable versions. Operators and administrators of systems using Linux kernel versions 6.11 and earlier should also be aware of the potential risks and take necessary precautions.

Why it matters

Defenders should prioritize patching vulnerable Linux kernel versions and assess exposure in their environments to prevent potential data corruption and loss.

  • Data corruption for udmabuf and iommufd due to DMA accessing detached folios
  • Potential data loss or stale data exposure due to DMA writes or reads

Technical summary

The Linux kernel vulnerability is caused by memfd_pin_folios() not taking the folio lock when pinning folios from the page cache. This allows khugepaged or MADV_COLLAPSE to replace a folio after checking its refcount, leading to potential data corruption for udmabuf and iommufd. The vulnerability can cause data corruption for udmabuf and iommufd, as 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.

Defensive priority

Defenders should prioritize patching vulnerable Linux kernel versions and assess exposure in their environments.

Recommended defensive actions

  • Patch vulnerable Linux kernel versions
  • Assess exposure in environments using Linux kernel versions 6.11 and earlier
  • Verify inventory of Linux kernel versions and check for patch compliance
  • Review compensating controls for exposed systems while remediation is scheduled and verified
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up

Evidence notes

The vulnerability is caused by memfd_pin_folios() not taking the folio lock when pinning folios from the page cache. This allows khugepaged or MADV_COLLAPSE to replace a folio after checking its refcount, leading to potential data corruption.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-99642 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-99642

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-99642 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-99642

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

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

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/99xxx/CVE-2026-99642.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/240bc9b873d3522672db13ea93ec73b7f0461912

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/4480eb27975b91a28bc058a2ca16f466ebd9d7cd

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/6ac69b444b85d0e511d9bc15f586ebeed49322fa

    Supplemental source

  • Source reference

    Unverified legacy reference

    URL: https://git.kernel.org/stable/c/71555ae8c7572fd99158013ca2e29187c5d2508d

    Supplemental source

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.