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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-02)
- Published: 2025-09-04T15:32:40.771Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from adef440691bab824e39c1b17382322d195e1fab0 before bb81c18dbd42650c844e160cafa7cbb20243a96a; from adef440691bab824e39c1b17382322d195e1fab0 before 1202abad7a7ccd28c426d2844771a387b07629a4; from adef440691bab824e39c1b17382322d195e1fab0 before 7f1101a0a181243ad587ececdffc4845f035549f; from adef440691bab824e39c1b17382322d195e1fab0 before aba6faec0103ed8f169be8dce2ead41fcb689446; 6.8 (not affected: before 6.8; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.8 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2; 6.17

## References

- <https://git.kernel.org/stable/c/bb81c18dbd42650c844e160cafa7cbb20243a96a> (patch)
- <https://git.kernel.org/stable/c/1202abad7a7ccd28c426d2844771a387b07629a4> (patch)
- <https://git.kernel.org/stable/c/7f1101a0a181243ad587ececdffc4845f035549f> (patch)
- <https://git.kernel.org/stable/c/aba6faec0103ed8f169be8dce2ead41fcb689446> (patch)

## Sources

- CVE List: [CVE-2025-38686](https://www.cve.org/CVERecord?id=CVE-2025-38686), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-38686](https://nvd.nist.gov/vuln/detail/CVE-2025-38686), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-38686 · Whole record: https://cve.day/CVE-2025-38686.json · Rebuilt by cve.day 2026-11-25T22:59:04.134Z
