← CVE Intelligence

CVE-2025-38686

userfaultfd: fix a crash in UFFDIO_MOVE when PMD is a migration entry PUBLISHED

Description (CNA)

In the Linux kernel, the following vulnerability has been resolved: userfaultfd: fix a crash in UFFDIO_MOVE when PMD is a migration entry When UFFDIO_MOVE encounters a migration PMD entry, it proceeds with obtaining a folio and accessing it even though the entry is swp_entry_t. Add the missing check and let split_huge_pmd() handle migration entries. While at it also remove unnecessary folio check. [surenb@google.com: remove extra folio check, per David]

Affected (CNA)

Vendor / productVersions
Linux / Linuxaffected adef440691bab824e39c1b17382322d195e1fab0 before bb81c18dbd42650c844e160cafa7cbb20243a96a; affected adef440691bab824e39c1b17382322d195e1fab0 before 1202abad7a7ccd28c426d2844771a387b07629a4; affected adef440691bab824e39c1b17382322d195e1fab0 before 7f1101a0a181243ad587ececdffc4845f035549f; affected adef440691bab824e39c1b17382322d195e1fab0 before aba6faec0103ed8f169be8dce2ead41fcb689446
Linux / Linuxaffected 6.8; unaffected 0 before 6.8; unaffected 6.12.43 through 6.12.*; unaffected 6.15.11 through 6.15.*; unaffected 6.16.2 through 6.16.*; unaffected 6.17 through *

CWE

No CWE identifiers supplied.

References