CVE-2024-56764
ublk: detach gendisk from ublk device if add_disk() fails
Reported by linux · Published January 6, 2025
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | bd23f6c2c2d00518e2f27f2d25cef795de9bee56, bd23f6c2c2d00518e2f27f2d25cef795de9bee56 |
| Linux | Linux | 6.7, 0, 6.12.8 |
| Linux | Linux | 6.13, 0, 6.12.8 |
| linux | linux_kernel | 6.7, 6.7 |
Timeline
- Jan 6, 2025 CVE Published
- Jan 6, 2025 PoC Published (4 in total, the first dated here)
- Jan 7, 2025 EPSS Score (30 in total, the first dated here)
- Jan 21, 2025 Coalition ESS Score (5 in total, the first dated here)
- Dec 29, 2025 Security Advisory (65 in total, the first dated here)
- Sep 24, 2026 Distribution Patch (61 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-56764
vulnetix vdb fixes CVE-2024-56764
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-56764/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart