What’s Vulnerable › Vulnerabilities

CVE-2025-38686: userfaultfd: fix a crash in UFFDIO_MOVE when PMD is a migration entry

Description

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 products

How to fix

Upgrade to a fixed version: Linux kernel 6.12.43, 6.15.11, 6.16.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-38686 or the next vulnerability affects your stack