CVE-2024-27007

Source
https://cve.org/CVERecord?id=CVE-2024-27007
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27007.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-27007
Downstream
Published
2024-05-01T05:29:08.528Z
Modified
2026-03-14T12:27:43.991372Z
Summary
userfaultfd: change src_folio after ensuring it's unpinned in UFFDIO_MOVE
Details

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

userfaultfd: change srcfolio after ensuring it's unpinned in UFFDIOMOVE

Commit d7a08838ab74 ("mm: userfaultfd: fix unexpected change to srcfolio when UFFDIOMOVE 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27007.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
adef440691bab824e39c1b17382322d195e1fab0
Fixed
df5f6e683e7f21a15d8be6e7a0c7a46436963ebe
Fixed
c0205eaf3af9f5db14d4b5ee4abacf4a583c3c50

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27007.json"