CVE-2022-49359 drm/panfrost: Job should reference MMU not file_priv

High 7.8 Published Updated

A use-after-free in the Linux kernel Panfrost driver allows attackers to cause a system crash or potentially execute arbitrary code.

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-2022-49359?

CVE-2022-49359 is a high-severity use after free vulnerability in Linux kernel, published on 26 Feb 2025. 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/panfrost: Job should reference MMU not file_priv

For a while now it's been allowed for a MMU context to outlive it's corresponding panfrost_priv, however the job structure still references panfrost_priv to get hold of the MMU context. If panfrost_priv has been freed this is a use-after-free which I've been able to trigger resulting in a splat.

To fix this, drop the reference to panfrost_priv in the job structure and add a direct reference to the MMU structure which is what's actually needed.

Weakness: CWE-416

Which versions are affected by CVE-2022-49359?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49359?

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-2022-49359 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-59142, DEBIAN-CVE-2022-49359, GHSA-gvx3-72r6-pv8h, ROOT-OS-DEBIAN-11-CVE-2022-49359, ROOT-OS-UBUNTU-2204-CVE-2022-49359, UBUNTU-CVE-2022-49359.

Is CVE-2022-49359 in your software?

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

Check your SBOMs for free