PT-2026-167188
CVE-2026-143330
·
Published
2026-12-03
·
Updated
2026-12-03
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:
vhost-vdpa: drop the parent's vq callback before the call fd is released
VHOST SET VRING CALL releases the previous call eventfd inside
vhost vring ioctl() -- it swaps the new context into vq->call ctx.ctx
and then eventfd ctx put()s the old one, which is a synchronous
kfree(). The parent vdpa device is only told about the change
afterwards, when vhost vdpa vring ioctl() reaches ops->set vq cb().
Parent drivers cache the pointer handed to them in
vdpa callback::trigger and do not take a reference on it, so
throughout that window the parent holds a dangling eventfd ctx and may
signal it. The documentation added with the field describes what
signalling it means but says nothing about how long it stays valid.
This is the same hazard that "vhost vdpa: assign irq bypass producer
token correctly" addressed for the irq bypass producer token, by
moving vhost vdpa unsetup vq irq() ahead of the vhost vring ioctl()
call. The producer token was only one of the two consumers of that
pointer; the one the parent keeps via ->set vq cb() was left behind
the free.
With VDUSE the window is directly reachable from userspace, because
the device emulation daemon can inject an interrupt at any time from a
different fd, and neither side shares a lock with the other: VDUSE
takes vq->irq lock, vhost takes vhost dev.mutex + vq->mutex.
BUG: KASAN: slab-use-after-free in raw spin lock irqsave+0x76/0xe0
Write of size 4 at addr ffff8881084e8788 by task vduse uaf/2987
raw spin lock irqsave+0x76/0xe0
eventfd signal mask+0x69/0x120
vduse dev ioctl+0x337/0x1a60 <- vduse vq signal irqfd(), inlined
x64 sys ioctl+0x120/0x170 <- VDUSE VQ INJECT IRQ
Allocated by task 2986:
do eventfd+0x50/0x200
x64 sys eventfd2+0x2e/0x40
kmalloc-64, freed 64-byte region [ffff8881084e8780, ffff8881084e87c0)
One thread loops VHOST SET VRING CALL on /dev/vhost-vdpa-N with a
fresh eventfd and then unbinds it, while another loops
VDUSE VQ INJECT IRQ on /dev/vduse/. This reproduces in 5 out of
5 ten-second runs on v7.1.6 and 3 out of 3 on v7.2-rc6. With the patch
there are no reports in 3 out of 3 runs on either, while the same
workload still gets ~30000 interrupts per run delivered into live
eventfds, so the path is still being exercised.
Tell the parent to drop the callback before vhost vring ioctl() can
free the eventfd, mirroring what is already done for the bypass
producer, and restore it if the ioctl fails -- on failure the swap
never happened, the old context is still installed, and leaving the
parent without a callback would silently drop that vq's interrupts.
Clearing the callback only stops a parent from starting to use the
context; a handler that already loaded it can still be running. For
parents with a real interrupt, wait for it with synchronize irq() on
the vq's irq. VDUSE does not implement get vq irq, so that case stays
covered by the teardown above.
Found an issue in the description? Have something to add? Feel free to write us 👾