CVE-2024-47748
Linux Kernel Vhost VDPA Use-After-Free
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.
INFO
Published Date :
Oct. 21, 2024, 1:15 p.m.
Last Modified :
Oct. 23, 2024, 5:28 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
5.9
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-47748
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-47748
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-47748
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Oct. 23, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://git.kernel.org/stable/c/02e9e9366fefe461719da5d173385b6685f70319 No Types Assigned https://git.kernel.org/stable/c/02e9e9366fefe461719da5d173385b6685f70319 Patch Changed Reference Type https://git.kernel.org/stable/c/0c170b1e918b9afac25e2bbd01eaa2bfc0ece8c0 No Types Assigned https://git.kernel.org/stable/c/0c170b1e918b9afac25e2bbd01eaa2bfc0ece8c0 Patch Changed Reference Type https://git.kernel.org/stable/c/7cf2fb51175cafe01df8c43fa15a06194a59c6e2 No Types Assigned https://git.kernel.org/stable/c/7cf2fb51175cafe01df8c43fa15a06194a59c6e2 Patch Changed Reference Type https://git.kernel.org/stable/c/927a2580208e0f9b0b47b08f1c802b7233a7ba3c No Types Assigned https://git.kernel.org/stable/c/927a2580208e0f9b0b47b08f1c802b7233a7ba3c Patch Changed Reference Type https://git.kernel.org/stable/c/ca64edd7ae93402af2596a952e0d94d545e2b9c0 No Types Assigned https://git.kernel.org/stable/c/ca64edd7ae93402af2596a952e0d94d545e2b9c0 Patch Changed Reference Type https://git.kernel.org/stable/c/ec5f1b54ceb23475049ada6e7a43452cf4df88d1 No Types Assigned https://git.kernel.org/stable/c/ec5f1b54ceb23475049ada6e7a43452cf4df88d1 Patch Changed Reference Type https://git.kernel.org/stable/c/fae9b1776f53aab93ab345bdbf653b991aed717d No Types Assigned https://git.kernel.org/stable/c/fae9b1776f53aab93ab345bdbf653b991aed717d Patch Added CWE NIST CWE-416 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.9 up to (excluding) 5.10.227 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.168 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.113 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.54 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.13 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.11 up to (excluding) 6.11.2 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 21, 2024
Action Type Old Value New Value Added 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. Added Reference kernel.org https://git.kernel.org/stable/c/0c170b1e918b9afac25e2bbd01eaa2bfc0ece8c0 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/927a2580208e0f9b0b47b08f1c802b7233a7ba3c [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ec5f1b54ceb23475049ada6e7a43452cf4df88d1 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ca64edd7ae93402af2596a952e0d94d545e2b9c0 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/fae9b1776f53aab93ab345bdbf653b991aed717d [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/7cf2fb51175cafe01df8c43fa15a06194a59c6e2 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/02e9e9366fefe461719da5d173385b6685f70319 [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-47748
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-47748
weaknesses.