Bug 2320555 (CVE-2024-49943) - CVE-2024-49943 kernel: drm/xe/guc_submit: add missing locking in wedged_fini
Summary: CVE-2024-49943 kernel: drm/xe/guc_submit: add missing locking in wedged_fini
Keywords:
Status: NEW
Alias: CVE-2024-49943
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2321036
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-10-21 19:10 UTC by OSIDB Bzimport
Modified: 2024-10-22 19:21 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-10-21 19:10:28 UTC
In the Linux kernel, the following vulnerability has been resolved:

drm/xe/guc_submit: add missing locking in wedged_fini

Any non-wedged queue can have a zero refcount here and can be running
concurrently with an async queue destroy, therefore dereferencing the
queue ptr to check wedge status after the lookup can trigger UAF if
queue is not wedged.  Fix this by keeping the submission_state lock held
around the check to postpone the free and make the check safe, before
dropping again around the put() to avoid the deadlock.

(cherry picked from commit d28af0b6b9580b9f90c265a7da0315b0ad20bbfd)


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