CVE-2024-46837 drm/panthor: Restrict high priorities on group_create

Medium 5.5 Published Updated

Local attackers can create high-priority GPU groups without permission, leading to potential denial of service or privilege escalation in the Linux kernel.

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

CVE-2024-46837 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/panthor: Restrict high priorities on group_create

We were allowing any users to create a high priority group without any permission checks. As a result, this was allowing possible denial of service.

We now only allow the DRM master or users with the CAP_SYS_NICE capability to set higher priorities than PANTHOR_GROUP_PRIORITY_MEDIUM.

As the sole user of that uAPI lives in Mesa and hardcode a value of MEDIUM [1], this should be safe to do.

Additionally, as those checks are performed at the ioctl level, panthor_group_create now only check for priority level validity.

[1]https://gitlab.freedesktop.org/mesa/mesa/-/blob/f390835074bdf162a63deb0311d1a6de527f9f89/src/gallium/drivers/panfrost/pan_csf.c#L1038

Which versions are affected by CVE-2024-46837?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46837?

Apply the vendor's patch.

Is CVE-2024-46837 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-46837, DEBIAN-CVE-2024-46837, GHSA-hmc9-3mww-7gm8, UBUNTU-CVE-2024-46837.

Is CVE-2024-46837 in your software?

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

Check your SBOMs for free