CVE-2024-50174 drm/panthor: Fix race when converting group handle to group object

High 7.8 Published Updated

A race condition in the Linux kernel Panthor driver allows attackers to trigger use-after-free errors, potentially leading to privilege escalation or system crashes.

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

CVE-2024-50174 is a high-severity vulnerability in Linux kernel, published on 8 Nov 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/panthor: Fix race when converting group handle to group object

XArray provides it's own internal lock which protects the internal array when entries are being simultaneously added and removed. However there is still a race between retrieving the pointer from the XArray and incrementing the reference count.

To avoid this race simply hold the internal XArray lock when incrementing the reference count, this ensures there cannot be a racing call to xa_erase().

Weakness: CWE-362

Which versions are affected by CVE-2024-50174?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-50174?

Apply the vendor's patch.

Is CVE-2024-50174 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-50174, DEBIAN-CVE-2024-50174, GHSA-j7v5-x62w-r9x3, UBUNTU-CVE-2024-50174.

Is CVE-2024-50174 in your software?

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

Check your SBOMs for free