CVE-2025-39754 mm/smaps: fix race between smaps_hugetlb_range and migration

Medium 4.7 Published Updated

A race condition in the Linux kernel's smaps_hugetlb_range function can cause a kernel crash, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-39754?

CVE-2025-39754 is a medium-severity vulnerability in Linux kernel, published on 11 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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().

Weakness: CWE-362

Which versions are affected by CVE-2025-39754?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-39754?

Apply the vendor's patch.

Is CVE-2025-39754 being exploited?

There is no known exploitation of CVE-2025-39754 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-67175, AZL-70952, BELL-CVE-2025-39754, DEBIAN-CVE-2025-39754, GHSA-fppf-vq4v-6j7g, OESA-2025-2411 and 5 more.

Is CVE-2025-39754 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free