CVE-2025-39727

HIGH

Linux Kernel 6.12-6.12.41, 6.13-6.15.9, 6.16 - Buffer Overflow in setup_clusters()

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.8
EPSS 0.0016
EPSS Percentile 5.2%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-120
Status published
Products (14)
linux/Kernel 6.12.0 - 6.12.42linux
linux/Kernel 6.13.0 - 6.15.10linux
linux/Kernel 6.16.0 - 6.16.1linux
Linux/Linux < 6.12
Linux/Linux 6.12
Linux/Linux 6.12.42 - 6.12.*
Linux/Linux 6.15.10 - 6.15.*
Linux/Linux 6.16.1 - 6.16.*
Linux/Linux 6.17
Linux/Linux b843786b0bd01ced7fcdbf3b033d68db2f7c61b2 - 152c1339dc13ad46f1b136e8693de15980750835
... and 4 more
Published Sep 07, 2025
Tracked Since Feb 18, 2026