CVE-2026-99663

mm/gup: fix clearing folios in memfd_pin_folios()

State
Published
Severity
Not scored
Published
Nov 20, 2026
Updated
Nov 20, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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 ]

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to before 9b9c506018859bb33f01e4b9df213d41b9ca4cc2Affected
  • 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to before d56f6835532c59b1b5e2d43f373f31586e7e457fAffected
  • 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to before 65f4a8ef0adf18601c6ddbfd0e3918afffaeb890Affected
  • 89c1905d9c140372b7f50ef48f42378cf85d9bc5 to before c83ee2fa5a94edb2e04102b9dd4f1ee0eeb2b932Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.118 through 6.12.*Not affected
  • 6.18.64 through 6.18.*Not affected
  • 7.3.5 through 7.3.*Not affected
  • 7.4-rc2 and laterNot affected

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.