# CVE-2024-27007: userfaultfd: change src_folio after ensuring it's unpinned in UFFDIO_MOVE

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/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.33%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-05-01T05:29:08.528Z
- Modified: 2026-08-05T11:28:57.017Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

userfaultfd: change src_folio after ensuring it's unpinned in UFFDIO_MOVE

Commit d7a08838ab74 ("mm: userfaultfd: fix unexpected change to src_folio
when UFFDIO_MOVE fails") moved the src_folio->{mapping, index} changing to
after clearing the page-table and ensuring that it's not pinned.  This
avoids failure of swapout+migration and possibly memory corruption.

However, the commit missed fixing it in the huge-page case.

(As written by CVE List.)

## Affected

- Linux Linux: from adef440691bab824e39c1b17382322d195e1fab0 before df5f6e683e7f21a15d8be6e7a0c7a46436963ebe; from adef440691bab824e39c1b17382322d195e1fab0 before c0205eaf3af9f5db14d4b5ee4abacf4a583c3c50; 6.8 (not affected: before 6.8; from 6.8.8 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 6.8 before 6.8.8; 6.9

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/df5f6e683e7f21a15d8be6e7a0c7a46436963ebe> (patch)
- <https://git.kernel.org/stable/c/c0205eaf3af9f5db14d4b5ee4abacf4a583c3c50> (patch)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/>

## Sources

- CVE List: [CVE-2024-27007](https://www.cve.org/CVERecord?id=CVE-2024-27007), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-27007](https://nvd.nist.gov/vuln/detail/CVE-2024-27007), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-27007 · Whole record: https://cve.day/CVE-2024-27007.json · Rebuilt by cve.day 2026-11-25T22:58:39.767Z
