CVE-2023-54202 drm/i915: fix race condition UAF in i915_perf_add_config_ioctl
A race condition in the Linux kernel's i915 driver allows local attackers to trigger a use-after-free, potentially leading to code execution or privilege escalation.
- 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-2023-54202?
CVE-2023-54202 is a high-severity use after free vulnerability in Linux, published on 30 Dec 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/i915: fix race condition UAF in i915_perf_add_config_ioctl
Userspace can guess the id value and try to race oa_config object creation with config remove, resulting in a use-after-free if we dereference the object after unlocking the metrics_lock. For that reason, unlocking the metrics_lock must be done after we are done dereferencing the object.
[tursulin: Manually added stable tag.] (cherry picked from commit 49f6f6483b652108bcb73accd0204a464b922395)
Which versions are affected by CVE-2023-54202?
How do I fix CVE-2023-54202?
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-2023-54202 being exploited?
There is no known exploitation of CVE-2023-54202 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2023-54202, DEBIAN-CVE-2023-54202, GHSA-2x24-vjrm-p9g2, ROOT-OS-DEBIAN-11-CVE-2023-54202, UBUNTU-CVE-2023-54202.