7.8

CVE-2025-39727: mm: swap: fix potential buffer overflow in setup_clusters()

Analyzed
AliasesUBUNTU-CVE-2025-39727DEBIAN-CVE-2025-39727
Published 07-09-2025Last modified 11-05-2026

Vulnerability summary

CVE-2025-39727 is a high (CVSS 7.8) vulnerability in linux. EPSS estimates a 0.18% chance of exploitation in the next 30 days, higher than 7.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.18%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 13 · Related 11

Timeline

  1. 07-09-2025
    PublishedVulnerability first disclosed.
  2. 11-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

3 scores · 3 sources · 1 version

EPSS trend

Probability

0.18%

Chance of exploitation in the next 30 days

Percentile

7%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.18% on 04-10-2026

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu92 products
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
  • linux-aws-5.13All versions (No fix recorded)
  • linux-aws-5.19All versions (No fix recorded)
Linux2 products
  • linux≥ b843786b0bd01ced7fcdbf3b033d68db2f7c61b2, < 91b370800b3f2b3dda244c0ab06719c4971190a5 | ≥ b843786b0bd01ced7fcdbf3b033d68db2f7c61b2, < 9b01ada580ee84fb319e7ecb5fb5b1f54a9eb799 | ≥ b843786b0bd01ced7fcdbf3b033d68db2f7c61b2, < 815c528b13f2bb9b3130c13bedeabf2351a68129 | ≥ b843786b0bd01ced7fcdbf3b033d68db2f7c61b2, < 152c1339dc13ad46f1b136e8693de15980750835 | 6.12
  • linux_kernel≥ 6.12, < 6.12.42 | ≥ 6.13, < 6.15.10 | ≥ 6.16, < 6.16.1
Debian1 product
  • linux< 6.12.43-1 | < 6.16.3-1

3 vendors · 95 products

References

14 links
Show all 14 references