# CVE-2023-52981: drm/i915: Fix request ref counting during error capture & debugfs dump

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.26% (percentile 11, 2026-11-28)
- **Published:** 2025-03-27T16:43:20.111Z
- **Modified:** 2026-10-15T22:17:35.187Z

## Who should check

- Anyone running Linux \>= 573ba126aef37c8315e5bb68d2dad515efa96994, \< 9467397f417dd7b5d0db91452f0474e79716a527; \>= 573ba126aef37c8315e5bb68d2dad515efa96994, \< 86d8ddc74124c3fdfc139f246ba6da15e45e86e3
- Anyone running Linux 5.15

## Description

In the Linux kernel, the following vulnerability has been resolved:

drm/i915: Fix request ref counting during error capture & debugfs dump

When GuC support was added to error capture, the reference counting
around the request object was broken. Fix it up.

The context based search manages the spinlocking around the search
internally. So it needs to grab the reference count internally as
well. The execlist only request based search relies on external
locking, so it needs an external reference count but within the
spinlock not outside it.

The only other caller of the context based search is the code for
dumping engine state to debugfs. That code wasn't previously getting
an explicit reference at all as it does everything while holding the
execlist specific spinlock. So, that needs updaing as well as that
spinlock doesn't help when using GuC submission. Rather than trying to
conditionally get/put depending on submission model, just change it to
always do the get/put.

v2: Explicitly document adding an extra blank line in some dense code
(Andy Shevchenko). Fix multiple potential null pointer derefs in case
of no request found (some spotted by Tvrtko, but there was more!).
Also fix a leaked request in case of !started and another in
\_\_guc\_reset\_context now that intel\_context\_find\_active\_request is
actually reference counting the returned request.
v3: Add a \_get suffix to intel\_context\_find\_active\_request now that it
grabs a reference (Daniele).
v4: Split the intel\_guc\_find\_hung\_context change to a separate patch
and rename intel\_context\_find\_active\_request\_get to
intel\_context\_get\_active\_request (Tvrtko).
v5: s/locking/reference counting/ in commit message (Tvrtko)

(cherry picked from commit 3700e353781e27f1bc7222f51f2cc36cbeb9b4ec)

## Affected and fixed versions

- Linux: \>= 573ba126aef37c8315e5bb68d2dad515efa96994, \< 9467397f417dd7b5d0db91452f0474e79716a527; \>= 573ba126aef37c8315e5bb68d2dad515efa96994, \< 86d8ddc74124c3fdfc139f246ba6da15e45e86e3 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 86d8ddc74124c3fdfc139f246ba6da15e45e86e3 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52981. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52981.md
Affected: Linux >= 573ba126aef37c8315e5bb68d2dad515efa96994, < 9467397f417dd7b5d0db91452f0474e79716a527; >= 573ba126aef37c8315e5bb68d2dad515efa96994, < 86d8ddc74124c3fdfc139f246ba6da15e45e86e3; Linux 5.15
Fixed in: Linux 9467397f417dd7b5d0db91452f0474e79716a527, Linux 86d8ddc74124c3fdfc139f246ba6da15e45e86e3

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52981 being exploited?

There is no confirmed exploitation: CVE-2023-52981 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.26% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2023-52981?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52981?

Linux \>= 573ba126aef37c8315e5bb68d2dad515efa96994, \< 9467397f417dd7b5d0db91452f0474e79716a527; \>= 573ba126aef37c8315e5bb68d2dad515efa96994, \< 86d8ddc74124c3fdfc139f246ba6da15e45e86e3; Linux 5.15.

### Is there a fix for CVE-2023-52981?

Yes. Fixed in Linux 9467397f417dd7b5d0db91452f0474e79716a527, Linux 86d8ddc74124c3fdfc139f246ba6da15e45e86e3. Upgrade Linux to 86d8ddc74124c3fdfc139f246ba6da15e45e86e3 or later.

### How do I check if I'm affected by CVE-2023-52981?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9467397f417dd7b5d0db91452f0474e79716a527>
- patch: <https://git.kernel.org/stable/c/86d8ddc74124c3fdfc139f246ba6da15e45e86e3>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52981>

HTML: <https://flawdb.com/CVE-2023-52981> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52981>
