Vulnerabilities · 2025 · Linux
CVE-2025-39727
Linux Kernel vulnerability
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.
Affected products
Linux Kernel. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Linux Kernel runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- git.kernel.org/stable/c/152c1339dc13ad46f1b136e8693de15980750835 · Patch
- git.kernel.org/stable/c/815c528b13f2bb9b3130c13bedeabf2351a68129 · Patch
- git.kernel.org/stable/c/91b370800b3f2b3dda244c0ab06719c4971190a5 · Patch
- git.kernel.org/stable/c/9b01ada580ee84fb319e7ecb5fb5b1f54a9eb799 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-39727
- cve.org/CVERecord?id=CVE-2025-39727
More vulnerabilities in Linux products
CVE-2026-46300CVE-2025-40364CVE-2025-40325CVE-2025-40300CVE-2025-40114CVE-2025-40014CVE-2025-39989CVE-2025-39967All 12,086
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.