CVE-2024-49943 drm/xe/guc_submit: add missing locking in wedged_fini

High 7.8 Published Updated

A missing lock in the Linux kernel's Xe GPU driver allows a use-after-free, potentially enabling local attackers to execute code or escalate privileges.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-49943?

CVE-2024-49943 is a high-severity use after free vulnerability in Linux kernel, published on 21 Oct 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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)

Weakness: CWE-667

Which versions are affected by CVE-2024-49943?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-49943?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2024-49943 being exploited?

There is no known exploitation of CVE-2024-49943 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-49943, DEBIAN-CVE-2024-49943, GHSA-v5pw-w6w2-2r5q, UBUNTU-CVE-2024-49943.

Is CVE-2024-49943 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free