Vulnerability record
userfaultfd: fix UFFDIO_MOVE livelock on large folio with extra references
In the Linux kernel, the following vulnerability has been resolved:
userfaultfd: fix UFFDIO_MOVE livelock on large folio with extra references
To move one page out of a large folio, move_pages_ptes() first has to split the folio. __folio_split() refuses if the folio has any reference beyond its page table mappings and the caller's own, and it reports the refusal as -EAGAIN. move_pages() treats returned -EAGAIN as a transient race and keeps retrying the same address, holding the VMA read locks the whole time. This is incorrect since in some cases userspace can hold such a reference…
Remediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources