CVE-2024-56764: ublk: detach gendisk from ublk device if add_disk() fails
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.
Security readout for executives and security teams
Plain-English summary
A Linux kernel flaw can access disk-management memory after it has been freed when ublk device setup fails. A local, low-privileged user may be able to trigger serious confidentiality, integrity, or availability impact. It is rated CVSS 7.8, but the supplied sources do not report active exploitation.
Executive priority
Treat this as a high-priority local privilege-boundary issue on multi-user, shared, or ublk-dependent Linux systems. Patch through supported distribution channels after confirming applicability. Systems without ublk exposure may receive lower operational priority, but applicability should be verified rather than assumed.
Technical view
CVE-2024-56764 is a CWE-416 use-after-free in Linux ublk. If add_disk() fails, gendisk may be freed while remaining attached to the ublk device. Later, ublk_abort_requests() can acquire a reference to that freed object during uring-context exit or timeout handling. The fix detaches gendisk when add_disk() fails.
Likely exposure
Exposure is limited to systems running an affected Linux kernel where ublk is available and the failure-and-abort path can occur. The bundle lists versions 6.7, 6.12.8, and 6.13, but does not establish a reliable complete range. Confirm distribution package status with the vendor.
Exploitation context
The CVSS vector identifies a local attack requiring low privileges, low complexity, and no user interaction. The bundle marks the CVE as not KEV-listed, and no supplied source reports active exploitation. The evidence does not support describing this as remotely exploitable.
Researcher notes
Review lifetime handling between add_disk() failure and ublk_abort_requests(). The flaw arises because gendisk may already be freed before its reference is acquired during uring-context exit or timeout processing. The cited stable commits detach gendisk from the ublk device following add_disk() failure. Supplied sources provide no exploit demonstration or indicators of compromise.
Mitigation direction
Consult your Linux distributor's advisory to identify fixed kernel package versions for this CVE.
Upgrade to a supported kernel package incorporating the cited stable fix.
Prioritize shared systems where low-privileged users can access ublk functionality.
If patching is delayed, follow vendor-approved guidance; the bundle provides no specific workaround.
Validation and detection
Inventory running kernel versions and identify hosts where ublk is present or operationally used.
Map installed distribution packages to vendor advisories; upstream version strings alone are insufficient.
Verify the remediated kernel contains the applicable cited fix or an equivalent vendor backport.
Confirm affected hosts rebooted into the remediated kernel after installation.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-416: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
3Timeline events
1ADP providers
3Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-416 · source CWE mapping
Use After Free
Use After Free represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.