CVE-2025-39754
mm/smaps: fix race between smaps_hugetlb_range and migration
Check your servers for CVE-2025-39754
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39754 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
mm/smaps: fix race between smaps_hugetlb_range and migration
smaps_hugetlb_range() handles the pte without holdling ptl, and may be concurrenct with migration, leaing to BUG_ON in pfn_swap_entry_to_page(). The race is as follows.
smaps_hugetlb_range migrate_pages huge_ptep_get remove_migration_ptes folio_unlock pfn_swap_entry_folio BUG_ON
To fix it, hold ptl lock in smaps_hugetlb_range().
Exploitation
EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.10% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 25ee01a2fca02dfb5a3ce316e77910c468108199, before 37ee0d97298b0547cb26b6957ccfea2d356bd0e7 affected from 25ee01a2fca02dfb5a3ce316e77910c468108199, before f76089018b34dbe0c2e9b67c5b7d8860668748bb affected from 25ee01a2fca02dfb5a3ce316e77910c468108199, before 2a1f3663974162b8f1e098196f557cfc1d160138 affected from 25ee01a2fca02dfb5a3ce316e77910c468108199, before 09fc018f48871123ad5dbd7b03c956580232ed76 affected from 25ee01a2fca02dfb5a3ce316e77910c468108199, before b625883ccbcc2b57808db51d1375b1d7b9bcb3e5 affected from 25ee01a2fca02dfb5a3ce316e77910c468108199, before 45d19b4b6c2d422771c29b83462d84afcbb33f01
Other versions: unaffected
|
| Linux |
affected 4.4 unaffected before 4.4 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.43 up to and including 6.12.* unaffected from 6.15.11 up to and including 6.15.* unaffected from 6.16.2 up to and including 6.16.* unaffected 6.17 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39754 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39754
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-39754
trivy image --scanners vuln IMAGE | grep CVE-2025-39754
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/37ee0d97298b0547cb26b6957ccfea2d356bd0e7 git.kernel.org
- https://git.kernel.org/stable/c/f76089018b34dbe0c2e9b67c5b7d8860668748bb git.kernel.org
- https://git.kernel.org/stable/c/2a1f3663974162b8f1e098196f557cfc1d160138 git.kernel.org
- https://git.kernel.org/stable/c/09fc018f48871123ad5dbd7b03c956580232ed76 git.kernel.org
- https://git.kernel.org/stable/c/b625883ccbcc2b57808db51d1375b1d7b9bcb3e5 git.kernel.org
- https://git.kernel.org/stable/c/45d19b4b6c2d422771c29b83462d84afcbb33f01 git.kernel.org
Source: the record CVE-2025-39754 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse