CVE-2024-46867 drm/xe/client: fix deadlock in show_meminfo()

Medium 5.5 Published Updated

A deadlock in the Linux kernel's Xe GPU driver can cause a system hang, requiring a patch to fix the locking mechanism.

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-46867?

CVE-2024-46867 is a medium-severity vulnerability in Linux kernel, published on 27 Sep 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/client: fix deadlock in show_meminfo()

There is a real deadlock as well as sleeping in atomic() bug in here, if the bo put happens to be the last ref, since bo destruction wants to grab the same spinlock and sleeping locks. Fix that by dropping the ref using xe_bo_put_deferred(), and moving the final commit outside of the lock. Dropping the lock around the put is tricky since the bo can go out of scope and delete itself from the list, making it difficult to navigate to the next list entry.

(cherry picked from commit 0083b8e6f11d7662283a267d4ce7c966812ffd8a)

Weakness: CWE-667

Which versions are affected by CVE-2024-46867?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46867?

Apply the vendor's patch.

Is CVE-2024-46867 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-46867, DEBIAN-CVE-2024-46867, GHSA-rp89-9jxh-73fw, UBUNTU-CVE-2024-46867.

Is CVE-2024-46867 in your software?

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

Check your SBOMs for free