CVE-2026-31648: Linux kernel · mm: filemap: fix nr_pages calculation overflow in filemap_map_pages()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High : upgrade to 7.0.0-1006.6 soon.
Data as of 26 Oct 2026, 13:47 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 1% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 7.0.0-1006.6
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 24 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade the Ubuntu linux-nvidia package to 7.0.0-1006.6.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlinux-azure-fdepkg:deb/ubuntu/linux-azure-fde@7.0.0-1008.8?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSlinux-nvidiapkg:deb/ubuntu/linux-nvidia@7.0.0-1006.6?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10linuxpkg:deb/ubuntu/linux@6.17.0-40.40?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-awspkg:deb/ubuntu/linux-aws@6.17.0-1019.19?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-azurepkg:deb/ubuntu/linux-azure@6.17.0-1020.20?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde@6.17.0-1017.17?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available and has been incorporated into Linux kernel versions 6.8.0-136.136, 6.8.0-1064.72, 6.8.0-1059.67, and several specific older kernel versions including 5.0.0-1025.28, 5.3.0-1033.35, and 4.15.0-1002.2 through 4.15.0-1022.23. Users should update to a patched kernel version to remediate this issue. No additional mitigation steps are required beyond applying the official kernel updates.
Description
A vulnerability in the Linux kernel's memory management subsystem (filemap) was resolved, addressing an integer overflow in the nr_pages calculation within filemap_map_pages(). This overflow could cause the kernel to map beyond the size of a large folio, potentially corrupting memory management metadata such as page mapcounts. The issue was reproducible under stress-ng on Arm64 with kernel v7.0-rc3 and involved race conditions between file mapping and inode size truncation. The fix involves recalculating the file end offset before retrieving folios to maintain consistency and prevent overflow.
References
- ubuntu.com/security/CVE-2026-31648 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-31648 (opens in a new tab)
- git.kernel.org/linus/f58df566524ebcdfa394329c64f47e3c9257516e (opens in a new tab)
- ubuntu.com/security/notices/USN-8567-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8574-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8574-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8595-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8596-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8595-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-8606-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8607-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8608-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8609-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8574-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8595-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-8619-1 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-31648 (opens in a new tab)
- git.kernel.org/stable/c/576543bedd616254032d4ebe54a90076f9e31740 (opens in a new tab)
- git.kernel.org/stable/c/633ab680c405ac390e6bec5b74aaf46197c837b6 (opens in a new tab)
- git.kernel.org/stable/c/88591194df736a508dd5461ab2167a61e98caac1 (opens in a new tab)
- git.kernel.org/stable/c/9316a820b9aae07d44469d6485376dad824c5b3f (opens in a new tab)
- git.kernel.org/stable/c/f58df566524ebcdfa394329c64f47e3c9257516e (opens in a new tab)