CVE-2024-42091 drm/xe: Check pat.ops before dumping PAT settings
A null pointer dereference in the Linux kernel's Xe DRM driver can cause a system crash when dumping PAT settings via debugfs on specific configurations.
- 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-42091?
CVE-2024-42091 is a medium-severity vulnerability in Linux kernel, published on 29 Jul 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: Check pat.ops before dumping PAT settings
We may leave pat.ops unset when running on brand new platform or when running as a VF. While the former is unlikely, the latter is valid (future) use case and will cause NPD when someone will try to dump PAT settings by debugfs.
It's better to check pointer to pat.ops instead of specific .dump hook, as we have this hook always defined for every .ops variant.
Weakness: CWE-476
Which versions are affected by CVE-2024-42091?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-42091?
Apply the vendor's patch.
Is CVE-2024-42091 being exploited?
There is no known exploitation of CVE-2024-42091 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-42091, DEBIAN-CVE-2024-42091, GHSA-2xcp-78pq-jqq3, ROOT-OS-UBUNTU-2204-CVE-2024-42091, UBUNTU-CVE-2024-42091.