CVE-2026-99706

mm: fix address wraparound when scanning large folio PTEs

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: fix address wraparound when scanning large folio PTEs

numa_rebuild_large_mapping() and do_swap_page() can be tricked into generating an address wraparound, crashing the kernel. All that's required is to map a tail page of a large folio close enough to the start/end of the address space to e.g., make

unsigned long addr_start = addr - (nr << PAGE_SHIFT);

to wrap around.

Let's fix it by providing a better helper, folio_scan_range(), that takes care of staying within VMA and page table boundaries while handling possible wraparounds.

There are some nasty details, like not being able to use pmd_addr_end() in this context. Add some helpful comments for these cases.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • d2136d749d76af980b3accd72704eea4eab625bd to before f6c17bda9b304795a2c284fb6c8a8eaac6248b80Affected
  • d2136d749d76af980b3accd72704eea4eab625bd to before f681d4580d5c3c749f623cda722a21aefd3147b3Affected
LinuxLinux
  • 6.10Affected
  • before 6.10Not 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.