PT-2026-162886
CVE-2026-99919
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
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 indefinitely, such as by registering the page as an io uring
buffer.
An unprivileged user can trigger this with three threads: first holds such
a reference on a page of a THP, second calls UFFDIO MOVE on another page
of the same THP and spins in the kernel forever holding the VMA read
locks, and third calls fork() or mprotect(), which takes mmap lock for
writing and then waits forever for those read locks. From then on every
mmap lock user of that mm hangs, including other processes inspecting it
through /proc//, until the process is SIGKILLed. The hung task
detector reports the blocked tasks (third one), and with
kernel.hung task panic=1 the machine panics:
INFO: task wedge:95 blocked for more than 122 seconds.
task:wedge state:D stack:12528 pid:95 tgid:95 ppid:94
Call Trace:
schedule+0x596/0x1110
schedule+0x36/0xf0
vma start exclude readers+0x100/0x170
vma start write+0x51/0xd0
split vma+0x208/0x3d0
vma modify+0x6a8/0x840
vma modify flags+0xce/0x110
mprotect fixup+0xbe/0x480
do mprotect pkey+0x2d9/0x580
x64 sys mprotect+0x1a/0x30
Fix by returning -EBUSY instead of -EAGAIN in move pages ptes(), the
caller of split folio(), when the split fails. Thus, move pages() does
not retry -EBUSY and the ioctl drops its locks and returns to userspace
instead of spinning.
Found an issue in the description? Have something to add? Feel free to write us 👾