VDB

CVE-2024-56764

CVE-2024-56764 PUBLISHED CVSS 7.8 HIGH

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

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxbd23f6c2c2d00518e2f27f2d25cef795de9bee56, bd23f6c2c2d00518e2f27f2d25cef795de9bee56
LinuxLinux6.7, 0, 6.12.8
LinuxLinux6.13, 0, 6.12.8
linuxlinux_kernel6.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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›