vulnerability

Red Hat: CVE-2025-39727: kernel: mm: swap: fix potential buffer overflow in setup_clusters() (Multiple Advisories)

Severity
6
CVSS
(AV:L/AC:L/Au:S/C:C/I:P/A:C)
Published
Sep 7, 2025
Added
Jan 27, 2026
Modified
Jan 27, 2026

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.

Solutions

redhat-upgrade-kernelredhat-upgrade-kernel-rt
Title
NEW

Explore Exposure Command

Confidently identify and prioritize exposures from endpoint to cloud with full attack surface visibility and threat-aware risk context.