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.
History

Mon, 08 Sep 2025 15:30:00 +0000

Type Values Removed Values Added
First Time appeared Linux
Linux linux Kernel
Vendors & Products Linux
Linux linux Kernel

Mon, 08 Sep 2025 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 7.0, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'}

threat_severity

Important


Sun, 07 Sep 2025 15:30:00 +0000

Type Values Removed Values Added
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.
Title mm: swap: fix potential buffer overflow in setup_clusters()
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published: 2025-09-07T15:16:17.986Z

Updated: 2025-09-07T15:16:17.986Z

Reserved: 2025-04-16T07:20:57.118Z

Link: CVE-2025-39727

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-09-07T16:15:46.023

Modified: 2025-09-08T16:25:38.810

Link: CVE-2025-39727

cve-icon Redhat

Severity : Important

Publid Date: 2025-09-07T00:00:00Z

Links: CVE-2025-39727 - Bugzilla