CVE-2026-143330: vhost-vdpa: drop the parent's vq callback before the call fd is released

Published Dec 3, 2026
·
Updated

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

vhost-vdpa: drop the parent's vq callback before the call fd is released

VHOSTSETVRINGCALL releases the previous call eventfd inside vhostvringioctl() -- it swaps the new context into vq->callctx.ctx and then eventfdctxput()s the old one, which is a synchronous kfree(). The parent vdpa device is only told about the change afterwards, when vhostvdpavringioctl() reaches ops->setvqcb().

Parent drivers cache the pointer handed to them in vdpacallback::trigger and do not take a reference on it, so throughout that window the parent holds a dangling eventfdctx 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 "vhostvdpa: assign irq bypass producer token correctly" addressed for the irq bypass producer token, by moving vhostvdpaunsetupvqirq() ahead of the vhostvringioctl() call. The producer token was only one of the two consumers of that pointer; the one the parent keeps via ->setvqcb() 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->irqlock, vhost takes vhostdev.mutex + vq->mutex.

BUG: KASAN: slab-use-after-free in rawspinlockirqsave+0x76/0xe0 Write of size 4 at addr ffff8881084e8788 by task vduseuaf/2987

rawspinlockirqsave+0x76/0xe0 eventfdsignalmask+0x69/0x120 vdusedevioctl+0x337/0x1a60 <- vdusevqsignalirqfd(), inlined x64sysioctl+0x120/0x170 <- VDUSEVQINJECTIRQ

Allocated by task 2986: doeventfd+0x50/0x200 x64syseventfd2+0x2e/0x40

kmalloc-64, freed 64-byte region [ffff8881084e8780, ffff8881084e87c0)

One thread loops VHOSTSETVRINGCALL on /dev/vhost-vdpa-N with a fresh eventfd and then unbinds it, while another loops VDUSEVQINJECTIRQ on /dev/vduse/<name>. 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 vhostvringioctl() 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 synchronizeirq() on the vq's irq. VDUSE does not implement getvqirq, so that case stays covered by the teardown above.

Affected Software

11 affected componentsFixes available
Linux Linux kernel=v7.1.6, =v7.2-rc6
linux/kernel>=5.10.227<5.11
5.11
linux/kernel>=5.15.168<5.16
5.16
linux/kernel>=6.1.113<6.2
6.2
linux/kernel>=6.4.0<6.12.120
6.12.120
linux/kernel>=6.13.0<6.18.66
6.18.66
linux/kernel>=6.19.0<7.3.7
7.3.7
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-3, <=6.12.117-1, <=6.12.118-1, <=7.3.6-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.11
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.16
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.2
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.120
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.66
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.7
  7. Compensating control

    In vhost-vdpa, call vhost_vdpa_unsetup_vq_irq() before vhost_vring_ioctl() releases the old call eventfd. Clear the parent’s vq callback before releasing it, wait with synchronize_irq() for parents with a real interrupt, and restore the callback if the ioctl fails.

Event History

Dec 3, 2026
CVE Published
via MITRE·09:21 AM
Data Sourced
via MITRE·09:21 AM
Description
Data Sourced
via OSV·09:21 AM
DescriptionAffected Software
Data Sourced
via NVD·10:18 AM
Description

Frequently Asked Questions

1

Which environments are most directly exposed?

VDUSE environments are directly reachable from userspace. The issue also concerns vDPA parent drivers that cache the callback trigger pointer supplied through set_vq_cb without taking their own reference.

2

What operation creates the unsafe window?

Replacing a virtqueue call eventfd through VHOST_SET_VRING_CALL swaps in the new context and synchronously frees the old eventfd context before the parent device is notified of the callback change. If the parent signals its cached callback during that interval, it can use a dangling eventfd context.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203