CVE-2024-49943: drm/xe/guc_submit: add missing locking in wedged_fini
In the Linux kernel, the following vulnerability has been resolved:
drm/xe/gucsubmit: add missing locking in wedgedfini
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 submissionstate 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)
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.223-1Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.22-1Fixed in 6.12.25-1
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49943?
CVE-2024-49943 is classified as a high severity vulnerability in the Linux kernel.
How do I fix CVE-2024-49943?
To mitigate CVE-2024-49943, update your Linux kernel to a patched version that resolves the vulnerability.
Which versions of the Linux kernel are affected by CVE-2024-49943?
CVE-2024-49943 affects Linux kernel versions from 6.11 to 6.11.3 and also 6.12-rc1.
What is the impact of CVE-2024-49943 on system security?
CVE-2024-49943 can lead to potential gains for an attacker due to improper locking mechanisms in kernel processes.
Is a specific Linux distribution vulnerable to CVE-2024-49943?
Yes, Debian and other distributions that use affected kernel versions are vulnerable to CVE-2024-49943.