# CVE-2026-99663: mm/gup: fix clearing folios in memfd_pin_folios()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-20T05:50:14.097Z
- Modified: 2026-11-20T06:18:00.477Z
- Assigned by: Linux

## 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 ]

(As written by CVE List.)

## Affected

- Linux Linux: from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before 9b9c506018859bb33f01e4b9df213d41b9ca4cc2; from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before d56f6835532c59b1b5e2d43f373f31586e7e457f; from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before 65f4a8ef0adf18601c6ddbfd0e3918afffaeb890; from 89c1905d9c140372b7f50ef48f42378cf85d9bc5 before c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932; 6.11 (not affected: before 6.11; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/9b9c506018859bb33f01e4b9df213d41b9ca4cc2>
- <https://git.kernel.org/stable/c/d56f6835532c59b1b5e2d43f373f31586e7e457f>
- <https://git.kernel.org/stable/c/65f4a8ef0adf18601c6ddbfd0e3918afffaeb890>
- <https://git.kernel.org/stable/c/c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932>

## Sources

- CVE List: [CVE-2026-99663](https://www.cve.org/CVERecord?id=CVE-2026-99663), CVE Terms of Use, modified 2026-11-20
- NVD: [CVE-2026-99663](https://nvd.nist.gov/vuln/detail/CVE-2026-99663), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-99663 · Whole record: https://cve.day/CVE-2026-99663.json · Rebuilt by cve.day 2026-11-25T22:59:52.299Z
