Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-37958

MEDIUM 5.5EPSS 16%

mm/huge_memory: fix dereferencing invalid pmd migration entry

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 753f142f7ff7d2223a47105b61e1efd91587d711; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 9468afbda3fbfcec21ac8132364dff3dab945faf; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < ef5706bed97e240b4abf4233ceb03da7336bc775; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 22f6368768340260e862f35151d2e1c55cb1dc75; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 3977946f61cdba87b6b5aaf7d7094e96089583a5; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 6166c3cf405441f7147b322980144feb3cefc617; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < fbab262b0c8226c697af1851a424896ed47dedcc; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < be6e843fc51a584672dfd9c4a6a24c8cb81d5fb7
  • Anyone running Linux 4.14

Vulnerability facts

Affected
Linux >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 753f142f7ff7d2223a47105b61e1efd91587d711; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 9468afbda3fbfcec21ac8132364dff3dab945faf; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < ef5706bed97e240b4abf4233ceb03da7336bc775; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 22f6368768340260e862f35151d2e1c55cb1dc75; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 3977946f61cdba87b6b5aaf7d7094e96089583a5; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 6166c3cf405441f7147b322980144feb3cefc617; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < fbab262b0c8226c697af1851a424896ed47dedcc; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < be6e843fc51a584672dfd9c4a6a24c8cb81d5fb7; Linux 4.14
Fixed in
Linux 753f142f7ff7d2223a47105b61e1efd91587d711, Linux 9468afbda3fbfcec21ac8132364dff3dab945faf, Linux 22f6368768340260e862f35151d2e1c55cb1dc75, Linux 3977946f61cdba87b6b5aaf7d7094e96089583a5, Linux 6166c3cf405441f7147b322980144feb3cefc617
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: None
  • Availability impact: High
EPSS
0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
CWE
CWE-476
Published
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: mm/huge_memory: fix dereferencing invalid pmd migration entry When migrating a THP, concurrent access to the PMD migration entry during a deferred split scan can lead to an invalid address access, as illustrated below. To prevent this invalid access, it is necessary to check the PMD migration entry and return early. In this context, there is no need to use pmd_to_swp_entry and pfn_swap_entry_to_page to verify the equality of the target folio. Since the PMD migration entry is locked, it cannot be served as the target. Mailing list discussion and explanation from Hugh Dickins: "An anon_vma lookup points to a location which may contain the folio of interest, but might instead contain another folio: and weeding out those other folios is precisely what the "folio != pmd_folio((*pmd)" check (and the "risk of replacing the wrong folio" comment a few lines above it) is for." BUG: unable to handle page fault for address: ffffea60001db008 CPU: 0 UID: 0 PID: 2199114 Comm: tee Not tainted 6.14.0+ #4 NONE Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:split_huge_pmd_locked+0x3b5/0x2b60 Call Trace: <TASK> try_to_migrate_one+0x28c/0x3730 rmap_walk_anon+0x4f6/0x770 unmap_folio+0x196/0x1f0 split_huge_page_to_list_to_order+0x9f6/0x1560 deferred_split_scan+0xac5/0x12a0 shrinker_debugfs_scan_write+0x376/0x470 full_proxy_write+0x15c/0x220 vfs_write+0x2fc/0xcb0 ksys_write+0x146/0x250 do_syscall_64+0x6a/0x120 entry_SYSCALL_64_after_hwframe+0x76/0x7e The bug is found by syzkaller on an internal kernel, then confirmed on upstream.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 753f142f7ff7d2223a47105b61e1efd91587d711; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 9468afbda3fbfcec21ac8132364dff3dab945faf; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < ef5706bed97e240b4abf4233ceb03da7336bc775; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 22f6368768340260e862f35151d2e1c55cb1dc75; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 3977946f61cdba87b6b5aaf7d7094e96089583a5; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 6166c3cf405441f7147b322980144feb3cefc617; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < fbab262b0c8226c697af1851a424896ed47dedcc; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < be6e843fc51a584672dfd9c4a6a24c8cb81d5fb7—cvelist
Linux4.14—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2025-37958. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37958.md
Affected: Linux >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 753f142f7ff7d2223a47105b61e1efd91587d711; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 9468afbda3fbfcec21ac8132364dff3dab945faf; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < ef5706bed97e240b4abf4233ceb03da7336bc775; >= 84c3fc4e9c563d8fb91cfdf…
Fixed in: Linux 753f142f7ff7d2223a47105b61e1efd91587d711, Linux 9468afbda3fbfcec21ac8132364dff3dab945faf, Linux 22f6368768340260e862f35151d2e1c55cb1dc75, Linux 3977946f61cdba87b6b5aaf7d7094e96089583a5, Linux 6166c3cf405441f7147b322980144feb3cefc617

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2025-37958 being exploited?

There is no confirmed exploitation: CVE-2025-37958 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2025-37958?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2025-37958?

Linux >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 753f142f7ff7d2223a47105b61e1efd91587d711; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 9468afbda3fbfcec21ac8132364dff3dab945faf; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < ef5706bed97e240b4abf4233ceb03da7336bc775; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 22f6368768340260e862f35151d2e1c55cb1dc75; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 3977946f61cdba87b6b5aaf7d7094e96089583a5; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < 6166c3cf405441f7147b322980144feb3cefc617; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < fbab262b0c8226c697af1851a424896ed47dedcc; >= 84c3fc4e9c563d8fb91cfdf5948da48fe1af34d3, < be6e843fc51a584672dfd9c4a6a24c8cb81d5fb7; Linux 4.14.

Is there a fix for CVE-2025-37958?

Yes. Fixed in Linux 753f142f7ff7d2223a47105b61e1efd91587d711, Linux 9468afbda3fbfcec21ac8132364dff3dab945faf, Linux 22f6368768340260e862f35151d2e1c55cb1dc75, Linux 3977946f61cdba87b6b5aaf7d7094e96089583a5, Linux 6166c3cf405441f7147b322980144feb3cefc617. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2025-37958?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors