CVE-2024-56764

Severity CVSS v4.0:
Pending analysis
Type:
CWE-416 Use After Free
Publication date:
06/01/2025
Last modified:
11/02/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> ublk: detach gendisk from ublk device if add_disk() fails<br /> <br /> Inside ublk_abort_requests(), gendisk is grabbed for aborting all<br /> inflight requests. And ublk_abort_requests() is called when exiting<br /> the uring context or handling timeout.<br /> <br /> If add_disk() fails, the gendisk may have been freed when calling<br /> ublk_abort_requests(), so use-after-free can be caused when getting<br /> disk&amp;#39;s reference in ublk_abort_requests().<br /> <br /> Fixes the bug by detaching gendisk from ublk device if add_disk() fails.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.12.8 (excluding)
cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*