# CVE-2024-47748: vhost_vdpa: assign irq bypass producer token correctly

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-02)
- Published: 2024-10-21T12:14:14.448Z
- Modified: 2026-08-05T11:39:56.054Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

vhost_vdpa: assign irq bypass producer token correctly

We used to call irq_bypass_unregister_producer() in
vhost_vdpa_setup_vq_irq() which is problematic as we don't know if the
token pointer is still valid or not.

Actually, we use the eventfd_ctx as the token so the life cycle of the
token should be bound to the VHOST_SET_VRING_CALL instead of
vhost_vdpa_setup_vq_irq() which could be called by set_status().

Fixing this by setting up irq bypass producer's token when handling
VHOST_SET_VRING_CALL and un-registering the producer before calling
vhost_vring_ioctl() to prevent a possible use after free as eventfd
could have been released in vhost_vring_ioctl(). And such registering
and unregistering will only be done if DRIVER_OK is set.

(As written by CVE List.)

## Affected

- Linux Linux: from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before 0c170b1e918b9afac25e2bbd01eaa2bfc0ece8c0; from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before 927a2580208e0f9b0b47b08f1c802b7233a7ba3c; from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before ec5f1b54ceb23475049ada6e7a43452cf4df88d1; from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before ca64edd7ae93402af2596a952e0d94d545e2b9c0; from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before fae9b1776f53aab93ab345bdbf653b991aed717d; from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before 7cf2fb51175cafe01df8c43fa15a06194a59c6e2; from 2cf1ba9a4d15cb78b96ea97f727b93382c3f9a60 before 02e9e9366fefe461719da5d173385b6685f70319; 5.9 (not affected: before 5.9; from 5.10.227 up to 5.10.*; from 5.15.168 up to 5.15.*; from 6.1.113 up to 6.1.*; from 6.6.54 up to 6.6.*; from 6.10.13 up to 6.10.*; from 6.11.2 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: from 5.9 before 5.10.227; from 5.11 before 5.15.168; from 5.16 before 6.1.113; from 6.2 before 6.6.54; from 6.7 before 6.10.13; from 6.11 before 6.11.2

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/0c170b1e918b9afac25e2bbd01eaa2bfc0ece8c0> (patch)
- <https://git.kernel.org/stable/c/927a2580208e0f9b0b47b08f1c802b7233a7ba3c> (patch)
- <https://git.kernel.org/stable/c/ec5f1b54ceb23475049ada6e7a43452cf4df88d1> (patch)
- <https://git.kernel.org/stable/c/ca64edd7ae93402af2596a952e0d94d545e2b9c0> (patch)
- <https://git.kernel.org/stable/c/fae9b1776f53aab93ab345bdbf653b991aed717d> (patch)
- <https://git.kernel.org/stable/c/7cf2fb51175cafe01df8c43fa15a06194a59c6e2> (patch)
- <https://git.kernel.org/stable/c/02e9e9366fefe461719da5d173385b6685f70319> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-47748](https://www.cve.org/CVERecord?id=CVE-2024-47748), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-47748](https://nvd.nist.gov/vuln/detail/CVE-2024-47748), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-47748 · Whole record: https://cve.day/CVE-2024-47748.json · Rebuilt by cve.day 2026-11-25T22:58:47.000Z
