{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "5e68470f4e80a4120e9ecec408f6ab4ad386bd4a"
            },
            {
              "fixed": "d858ed79baa30067df6fafcbc794da9afedbe9b6"
            },
            {
              "fixed": "c906bc29f4caf64546b042a563e9853b2d9f6b0e"
            },
            {
              "fixed": "3cb11ec94e2476feee0ce108091b44954da74ace"
            },
            {
              "fixed": "c9c1c1b7b31fc8b9a5d6c04f5f0ae647d081a39d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "10348fb6feae4455be908e668ae65eb4aba118fc"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "4d10104d987ae1a1d277111fef1c7244dc9a19d2"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "5d63cbf47391b448b2fde565fe04b0a7a5b808a0"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.10.227"
            },
            {
              "fixed": "5.11"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.15.168"
            },
            {
              "fixed": "5.16"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.113"
            },
            {
              "fixed": "6.2"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.4.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143330.json"
  },
  "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.",
  "id": "CVE-2026-143330",
  "modified": "2026-12-03T10:45:20.674023145Z",
  "published": "2026-12-03T09:21:54.920Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/3cb11ec94e2476feee0ce108091b44954da74ace"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c906bc29f4caf64546b042a563e9853b2d9f6b0e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c9c1c1b7b31fc8b9a5d6c04f5f0ae647d081a39d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d858ed79baa30067df6fafcbc794da9afedbe9b6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143330.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143330"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "vhost-vdpa: drop the parent's vq callback before the call fd is released"
}