CVE-2026-99663
mm/gup: fix clearing folios in memfd_pin_folios()
- CVSS
- —
- EPSS
- 0.17% (p6)
- Published
- 2026-11-20
- Age
- 14d old
- Modified
- 2026-11-20
- Product
- Linux 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 ]
Fixed in
6.12.118 · 6.18.64 · 65f4a8ef0adf18601c6ddbfd0e3918afffaeb890 · 7.3.5 · 9b9c506018859bb33f01e4b9df213d41b9ca4cc2 · c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932 · d56f6835532c59b1b5e2d43f373f31586e7e457f
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.11.0, <6.12.118 | 6.12.118 |
| Linux | Kernel | >=6.13.0, <6.18.64 | 6.18.64 |
| Linux | Kernel | >=6.19.0, <7.3.5 | 7.3.5 |
| vendor | Linux | >=89c1905d9c140372b7f50ef48f42378cf85d9bc5, <65f4a8ef0adf18601c6ddbfd0e3918afffaeb890 | 65f4a8ef0adf18601c6ddbfd0e3918afffaeb890 |
| vendor | Linux | >=89c1905d9c140372b7f50ef48f42378cf85d9bc5, <9b9c506018859bb33f01e4b9df213d41b9ca4cc2 | 9b9c506018859bb33f01e4b9df213d41b9ca4cc2 |
| vendor | Linux | >=89c1905d9c140372b7f50ef48f42378cf85d9bc5, <c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932 | c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932 |
| vendor | Linux | >=89c1905d9c140372b7f50ef48f42378cf85d9bc5, <d56f6835532c59b1b5e2d43f373f31586e7e457f | d56f6835532c59b1b5e2d43f373f31586e7e457f |
Sources
- NVD · first seen 14d ago · NVD terms of use
- OSV · first seen 13d ago · CC-BY 4.0
- CVE List · first seen 14d ago · CVE Terms of Use
References
- https://git.kernel.org/stable/c/9b9c506018859bb33f01e4b9df213d41b9ca4cc2 other
- https://git.kernel.org/stable/c/d56f6835532c59b1b5e2d43f373f31586e7e457f other
- https://git.kernel.org/stable/c/65f4a8ef0adf18601c6ddbfd0e3918afffaeb890 other
- https://git.kernel.org/stable/c/c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932 other
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/99xxx/CVE-2026-99663.json advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-99663 advisory
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git package