Bug 2335903 (CVE-2024-56764) - CVE-2024-56764 kernel: ublk: detach gendisk from ublk device if add_disk() fails
Summary: CVE-2024-56764 kernel: ublk: detach gendisk from ublk device if add_disk() fails
Keywords:
Status: NEW
Alias: CVE-2024-56764
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-06 17:02 UTC by OSIDB Bzimport
Modified: 2025-01-21 13:10 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-01-06 17:02:08 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.