CVE-2026-99642
mm/gup: check folio->mapping under folio lock in memfd_pin_folios()
Check your servers for CVE-2026-99642
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-99642 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.26% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 89c1905d9c140372b7f50ef48f42378cf85d9bc5, before 240bc9b873d3522672db13ea93ec73b7f0461912 affected from 89c1905d9c140372b7f50ef48f42378cf85d9bc5, before 4480eb27975b91a28bc058a2ca16f466ebd9d7cd affected from 89c1905d9c140372b7f50ef48f42378cf85d9bc5, before 6ac69b444b85d0e511d9bc15f586ebeed49322fa affected from 89c1905d9c140372b7f50ef48f42378cf85d9bc5, before 71555ae8c7572fd99158013ca2e29187c5d2508d
Other versions: unaffected
|
| Linux |
affected 6.11 unaffected before 6.11 unaffected from 6.12.118 up to and including 6.12.* unaffected from 6.18.64 up to and including 6.18.* unaffected from 7.3.5 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-99642 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-99642
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-99642
trivy image --scanners vuln IMAGE | grep CVE-2026-99642
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/240bc9b873d3522672db13ea93ec73b7f0461912 git.kernel.org
- https://git.kernel.org/stable/c/4480eb27975b91a28bc058a2ca16f466ebd9d7cd git.kernel.org
- https://git.kernel.org/stable/c/6ac69b444b85d0e511d9bc15f586ebeed49322fa git.kernel.org
- https://git.kernel.org/stable/c/71555ae8c7572fd99158013ca2e29187c5d2508d git.kernel.org
Source: the record CVE-2026-99642 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse