Bug 2393733 (CVE-2025-39727) - CVE-2025-39727 kernel: mm: swap: fix potential buffer overflow in setup_clusters()
Summary: CVE-2025-39727 kernel: mm: swap: fix potential buffer overflow in setup_clust...
Keywords:
Status: NEW
Alias: CVE-2025-39727
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-09-07 16:01 UTC by OSIDB Bzimport
Modified: 2025-11-12 12:22 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2025:19106 0 None None None 2025-10-27 18:31:40 UTC
Red Hat Product Errata RHSA-2025:21118 0 None None None 2025-11-12 12:22:12 UTC

Description OSIDB Bzimport 2025-09-07 16:01:19 UTC
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.

Comment 1 Mauro Matteo Cascella 2025-09-09 08:03:18 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025090728-CVE-2025-39727-b07c@gregkh/

Comment 2 errata-xmlrpc 2025-10-27 18:31:39 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:19106 https://access.redhat.com/errata/RHSA-2025:19106

Comment 3 errata-xmlrpc 2025-11-12 12:22:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2025:21118 https://access.redhat.com/errata/RHSA-2025:21118


Note You need to log in before you can comment on or make changes to this bug.