CVE-2024-56764 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ublk: detach gendisk from ublk device if add_disk() fails Inside ublk_abort_requests(), gendisk is grabbed for aborting all inflight requests. And ublk_abort_requests() is called when exiting the uring context or handling timeout. If add_disk() fails, the gendisk may have been freed when calling ublk_abort_requests(), so use-after-free can be caused when getting disk's reference in ublk_abort_requests(). Fixes the bug by detaching gendisk from ublk device if add_disk() fails.
A use-after-free vulnerability has been identified in the Linux kernel's ublk device management. This issue arises when the 'add_disk()' function fails, potentially leading to a use-after-free condition. The vulnerability occurs because the 'ublk_abort_requests()' function, which is responsible for aborting all inflight requests, is called when exiting the uring context or handling timeouts. If 'add_disk()' fails, the 'gendisk' may have already been freed by the time 'ublk_abort_requests()' is called, creating the use-after-free scenario.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 11, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/75cd4005da5492129917a4a4ee45e81660556104 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7d680f2f76a3417fdfc3946da7471e81464f7b41 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | [email protected] |
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.7, < 6.12.8 6.13 rc1 6.13 rc2 6.13 rc3 6.13 rc4 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 11, 2025 | CVE Modified | CISA-ADP |
| Jan 7, 2025 | Initial Analysis | [email protected] |
| Jan 6, 2025 | New CVE Received | kernel.org |