CVE Catalog

CVE-2025-39754

MediumCVSS 4.7
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.14%

3th percentile - higher than 3% of all known CVEs

Summary

In the Linux kernel mm/smaps, smaps_hugetlb_range() handles PTE entries without holding the ptl lock, which can race with page migration and lead to a BUG_ON in pfn_swap_entry_to_page(). The fix holds the ptl lock in smaps_hugetlb_range().

Risk Assessment

This can cause a kernel crash (BUG_ON) when reading /proc/self/smaps concurrently with hugepage migration. It results in system or process unavailability.

Recommendation

Update the Linux kernel to a version containing the fix that adds ptl locking in smaps_hugetlb_range().

Related vulnerabilities

Original NVD description (English source)

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

Vulnerability data from NVD (NIST) · CISA KEV · EPSS