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.
References (4)
Core 4
Core References
Scores
CVSS v3
7.8
EPSS
0.0002
EPSS Percentile
4.8%
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 (4)
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_kernel
6.12 - 6.12.42
Published
Sep 07, 2025
Tracked Since
Feb 18, 2026