{"id":"AZL-118595","summary":"CVE-2026-143330 affecting package kernel 6.6.161.1-1","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nvhost-vdpa: drop the parent's vq callback before the call fd is released\n\nVHOST_SET_VRING_CALL releases the previous call eventfd inside\nvhost_vring_ioctl() -- it swaps the new context into vq-\u003ecall_ctx.ctx\nand then eventfd_ctx_put()s the old one, which is a synchronous\nkfree(). The parent vdpa device is only told about the change\nafterwards, when vhost_vdpa_vring_ioctl() reaches ops-\u003eset_vq_cb().\n\nParent drivers cache the pointer handed to them in\nvdpa_callback::trigger and do not take a reference on it, so\nthroughout that window the parent holds a dangling eventfd_ctx and may\nsignal it. The documentation added with the field describes what\nsignalling it means but says nothing about how long it stays valid.\n\nThis is the same hazard that \"vhost_vdpa: assign irq bypass producer\ntoken correctly\" addressed for the irq bypass producer token, by\nmoving vhost_vdpa_unsetup_vq_irq() ahead of the vhost_vring_ioctl()\ncall. The producer token was only one of the two consumers of that\npointer; the one the parent keeps via -\u003eset_vq_cb() was left behind\nthe free.\n\nWith VDUSE the window is directly reachable from userspace, because\nthe device emulation daemon can inject an interrupt at any time from a\ndifferent fd, and neither side shares a lock with the other: VDUSE\ntakes vq-\u003eirq_lock, vhost takes vhost_dev.mutex + vq-\u003emutex.\n\n  BUG: KASAN: slab-use-after-free in _raw_spin_lock_irqsave+0x76/0xe0\n  Write of size 4 at addr ffff8881084e8788 by task vduse_uaf/2987\n\n  _raw_spin_lock_irqsave+0x76/0xe0\n  eventfd_signal_mask+0x69/0x120\n  vduse_dev_ioctl+0x337/0x1a60     \u003c- vduse_vq_signal_irqfd(), inlined\n  __x64_sys_ioctl+0x120/0x170      \u003c- VDUSE_VQ_INJECT_IRQ\n\n  Allocated by task 2986:\n   do_eventfd+0x50/0x200\n   __x64_sys_eventfd2+0x2e/0x40\n\n  kmalloc-64, freed 64-byte region [ffff8881084e8780, ffff8881084e87c0)\n\nOne thread loops VHOST_SET_VRING_CALL on /dev/vhost-vdpa-N with a\nfresh eventfd and then unbinds it, while another loops\nVDUSE_VQ_INJECT_IRQ on /dev/vduse/\u003cname\u003e. This reproduces in 5 out of\n5 ten-second runs on v7.1.6 and 3 out of 3 on v7.2-rc6. With the patch\nthere are no reports in 3 out of 3 runs on either, while the same\nworkload still gets ~30000 interrupts per run delivered into live\neventfds, so the path is still being exercised.\n\nTell the parent to drop the callback before vhost_vring_ioctl() can\nfree the eventfd, mirroring what is already done for the bypass\nproducer, and restore it if the ioctl fails -- on failure the swap\nnever happened, the old context is still installed, and leaving the\nparent without a callback would silently drop that vq's interrupts.\n\nClearing the callback only stops a parent from starting to use the\ncontext; a handler that already loaded it can still be running. For\nparents with a real interrupt, wait for it with synchronize_irq() on\nthe vq's irq. VDUSE does not implement get_vq_irq, so that case stays\ncovered by the teardown above.","modified":"2026-12-04T14:18:30.871853253Z","published":"2026-12-03T10:18:20Z","upstream":["CVE-2026-143330"],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143330"}],"affected":[{"package":{"name":"kernel","ecosystem":"Azure Linux:3","purl":"pkg:rpm/azure-linux/kernel"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"6.6.161.1-1"}]}],"database_specific":{"source":"https://github.com/microsoft/AzureLinuxVulnerabilityData/blob/main/osv/AZL-118595.json"}}],"schema_version":"1.9.2"}