CVE-2025-39727mm: swap: fix potential buffer overflow in setup_clusters()
- 7.8HighCVSS base score
- 0.18%Exploitation in 30 daysEPSS · top 92% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By Linux
- 5 months later
· 5 months later
Published
- 8 months later
· 8 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Analyzed | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.18% · top 92% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 – < 91b370800b3f2b3dda244c0ab06719c4971190a5
- affected b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 – < 9b01ada580ee84fb319e7ecb5fb5b1f54a9eb799
- affected b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 – < 815c528b13f2bb9b3130c13bedeabf2351a68129
- affected b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 – < 152c1339dc13ad46f1b136e8693de15980750835
- affected 6.12
- unaffected < 6.12
- unaffected 6.12.42 – ≤ 6.12.*
- unaffected 6.15.10 – ≤ 6.15.*
- unaffected 6.16.1 – ≤ 6.16.*
- unaffected 6.17 – ≤ *
References
References4
- https://git.kernel.org/stable/c/91b370800b3f2b3dda244c0ab06719c4971190a5 (opens in a new tab)
- https://git.kernel.org/stable/c/9b01ada580ee84fb319e7ecb5fb5b1f54a9eb799 (opens in a new tab)
- https://git.kernel.org/stable/c/815c528b13f2bb9b3130c13bedeabf2351a68129 (opens in a new tab)
- https://git.kernel.org/stable/c/152c1339dc13ad46f1b136e8693de15980750835 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-31502 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-39727)Record last updated .