CVE-2025-39727
HighIn 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 3.1 score
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness type
CWE-120CVE-2025-39727 is classified as CWE-120
See CWE-120 on MITRE CWE for full details on this weakness type.
Affected versions
Linux kernel versions
6.12
and later are affected. Fixed in
6.12.42,
6.15.10,
6.16.1,
6.17
and their respective stable series.
References
The following references provide additional information about CVE-2025-39727 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/152c1339dc13ad46f1b136e8693de15980750835
-
PatchKernel patch commithttps://git.kernel.org/stable/c/815c528b13f2bb9b3130c13bedeabf2351a68129
-
PatchKernel patch commithttps://git.kernel.org/stable/c/91b370800b3f2b3dda244c0ab06719c4971190a5
Frequently asked questions
-
What is CVE-2025-39727?
CVE-2025-39727 is a High severity Linux kernel vulnerability with a CVSS score of 7.8 out of 10 . It affects Linux kernel versions from 6.12 onward and has been patched in 6.12.42, 6.15.10, 6.16.1 and others. CVE-2025-39727 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2025-39727?
CVE-2025-39727 has a CVSS score of 7.8 out of 10, rated High severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. -
Is there a patch available for CVE-2025-39727?
Yes — CVE-2025-39727 has been patched. Fixed versions include 6.12.42, 6.15.10, 6.16.1 and others. If you are running Linux kernel 6.12 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-39727 actively exploited?
No — CVE-2025-39727 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.