Back to CVE records
High 7.8Published Sep 7, 2025

CVE-2025-39727mm: swap: fix potential buffer overflow in setup_clusters()

Updated under an hour ago ()

Does this affect you?

It affects Linux and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

In the Linux kernel, the following vulnerability has been resolved: mm: swap: fix potential buffer overflow in setup_clusters() In setup_swap_map(), we only ensure badpages are in range (0, last_page]. As maxpages might be < last_page, setup_clusters() will encounter a buffer overflow when a badpage is >= maxpages. Only call inc_cluster_info_page() for badpage which is < maxpages to fix the issue.

CVSS
7.8 HIGH (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
Not given
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Linux
NVD analysis
Analyzed
Record last updated
May 11, 2026
First seen by InfoSec Signals
Oct 19, 2026

Affected products

Affected products
Linux Linux
linux:linux (from the name)
from b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 before 91b370800b3f2b3dda244c0ab06719c4971190a5; from b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 before 9b01ada580ee84fb319e7ecb5fb5b1f54a9eb799; from b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 before 815c528b13f2bb9b3130c13bedeabf2351a68129; from b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 before 152c1339dc13ad46f1b136e8693de15980750835
CNA record
linux linux_kernel
linux:linux_kernel
from 6.12 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1
NVD

References

References

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.