CVE-2025-39727CWE-120

CVE-2025-39727

High · published September 7, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
7.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00177 · 7.0th percentile
Weakness
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')
Published
2025-09-07T20:15Z
Affected products (3)
ProductVersionsFixed in
linux/linux_kernel≥ 6.12, < 6.12.426.12.42
linux/linux_kernel≥ 6.13, < 6.15.106.15.10
linux/linux_kernel≥ 6.16, < 6.16.16.16.1
References (4)
EPSS history
Timeline
  • 07 SEP 15:16Z
    mm: swap: fix potential buffer overflow in setup_clusters()
    cvelistv5