mm/gup: fix clearing folios in memfd_pin_folios()
- CVE-2026-99663
- GHSA-fghp-6732-457v
- EUVD-2026-130956
Description
In the Linux kernel, the following vulnerability has been resolved: mm/gup: fix clearing folios in memfd_pin_folios() memfd_pin_folios() pins folios obtained directly from the page cache without checking whether they are uptodate. However, shmem fallocate() can leave newly allocated folios uncleared and not uptodate. Callers such as udmabuf can then expose uninitialized memory to userspace. Clear non-uptodate folios and mark them uptodate under the folio lock before returning them to the caller. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description and comment ]
Text from the CVE.org record.
Recommendation
No source states a fixed version. Check the vendor advisory.
Affected
Linux
Affected versions Fixed in 6.11 none stated before 6.11: not affected none stated from 6.12.118 up to 6.12.*: not affected none stated from 6.18.64 up to 6.18.*: not affected none stated from 7.3.5 up to 7.3.*: not affected none stated from 7.4-rc2 onwards: not affected none stated
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.