# CVE-2024-41092: drm/i915/gt: Fix potential UAF by revoke of fence registers

> 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.37% (percentile 23, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2024-07-29T15:48:05.853Z
- **Modified:** 2026-08-05T11:35:20.738Z

## Who should check

- Anyone running Linux \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< f771b91f21c46ad1217328d05e72a2c7e3add535; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 29c0fdf49078ab161570d3d1c6e13d66f182717d; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< ca0fabd365a27a94a36e68a7a02df8ff3c13dac6; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 06dec31a0a5112a91f49085e8a8fa1a82296d5c7; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 414f4a31f7a811008fd9a33b06216b060bad18fc; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 996c3412a06578e9d779a16b9e79ace18125ab50
- Anyone running Linux 5.8

## Description

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

drm/i915/gt: Fix potential UAF by revoke of fence registers

CI has been sporadically reporting the following issue triggered by
igt@i915\_selftest@live@hangcheck on ADL-P and similar machines:

\<6\> \[414.049203\] i915: Running intel\_hangcheck\_live\_selftests/igt\_reset\_evict\_fence
...
\<6\> \[414.068804\] i915 0000:00:02.0: \[drm\] GT0: GUC: submission enabled
\<6\> \[414.068812\] i915 0000:00:02.0: \[drm\] GT0: GUC: SLPC enabled
\<3\> \[414.070354\] Unable to pin Y-tiled fence; err:-4
\<3\> \[414.071282\] i915\_vma\_revoke\_fence:301 GEM\_BUG\_ON(!i915\_active\_is\_idle(&fence-\>active))
...
\<4\>\[  609.603992\] ------------\[ cut here \]------------
\<2\>\[  609.603995\] kernel BUG at drivers/gpu/drm/i915/gt/intel\_ggtt\_fencing.c:301!
\<4\>\[  609.604003\] invalid opcode: 0000 \[\#1\] PREEMPT SMP NOPTI
\<4\>\[  609.604006\] CPU: 0 PID: 268 Comm: kworker/u64:3 Tainted: G     U  W          6.9.0-CI\_DRM\_14785-g1ba62f8cea9c+ \#1
\<4\>\[  609.604008\] Hardware name: Intel Corporation Alder Lake Client Platform/AlderLake-P DDR4 RVP, BIOS RPLPFWI1.R00.4035.A00.2301200723 01/20/2023
\<4\>\[  609.604010\] Workqueue: i915 \_\_i915\_gem\_free\_work \[i915\]
\<4\>\[  609.604149\] RIP: 0010:i915\_vma\_revoke\_fence+0x187/0x1f0 \[i915\]
...
\<4\>\[  609.604271\] Call Trace:
\<4\>\[  609.604273\]  \<TASK\>
...
\<4\>\[  609.604716\]  \_\_i915\_vma\_evict+0x2e9/0x550 \[i915\]
\<4\>\[  609.604852\]  \_\_i915\_vma\_unbind+0x7c/0x160 \[i915\]
\<4\>\[  609.604977\]  force\_unbind+0x24/0xa0 \[i915\]
\<4\>\[  609.605098\]  i915\_vma\_destroy+0x2f/0xa0 \[i915\]
\<4\>\[  609.605210\]  \_\_i915\_gem\_object\_pages\_fini+0x51/0x2f0 \[i915\]
\<4\>\[  609.605330\]  \_\_i915\_gem\_free\_objects.isra.0+0x6a/0xc0 \[i915\]
\<4\>\[  609.605440\]  process\_scheduled\_works+0x351/0x690
...

In the past, there were similar failures reported by CI from other IGT
tests, observed on other platforms.

Before commit 63baf4f3d587 ("drm/i915/gt: Only wait for GPU activity
before unbinding a GGTT fence"), i915\_vma\_revoke\_fence() was waiting for
idleness of vma-\>active via fence\_update().   That commit introduced
vma-\>fence-\>active in order for the fence\_update() to be able to wait
selectively on that one instead of vma-\>active since only idleness of
fence registers was needed.  But then, another commit 0d86ee35097a
("drm/i915/gt: Make fence revocation unequivocal") replaced the call to
fence\_update() in i915\_vma\_revoke\_fence() with only fence\_write(), and
also added that GEM\_BUG\_ON(!i915\_active\_is\_idle(&fence-\>active)) in front.
No justification was provided on why we might then expect idleness of
vma-\>fence-\>active without first waiting on it.

The issue can be potentially caused by a race among revocation of fence
registers on one side and sequential execution of signal callbacks invoked
on completion of a request that was using them on the other, still
processed in parallel to revocation of those fence registers.  Fix it by
waiting for idleness of vma-\>fence-\>active in i915\_vma\_revoke\_fence().

(cherry picked from commit 24bb052d3dd499c5956abad5f7d8e4fd07da7fb1)

## Affected and fixed versions

- Linux: \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< f771b91f21c46ad1217328d05e72a2c7e3add535; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 29c0fdf49078ab161570d3d1c6e13d66f182717d; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< ca0fabd365a27a94a36e68a7a02df8ff3c13dac6; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 06dec31a0a5112a91f49085e8a8fa1a82296d5c7; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 414f4a31f7a811008fd9a33b06216b060bad18fc; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 996c3412a06578e9d779a16b9e79ace18125ab50 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- Upgrade Linux to 996c3412a06578e9d779a16b9e79ace18125ab50 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-41092.md
Affected: Linux >= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, < f771b91f21c46ad1217328d05e72a2c7e3add535; >= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, < 29c0fdf49078ab161570d3d1c6e13d66f182717d; >= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, < ca0fabd365a27a94a36e68a7a02df8ff3c13dac6; >= 0d86ee35097ae0f1c2c50f2…
Fixed in: Linux 29c0fdf49078ab161570d3d1c6e13d66f182717d, Linux 06dec31a0a5112a91f49085e8a8fa1a82296d5c7, Linux 414f4a31f7a811008fd9a33b06216b060bad18fc, Linux 996c3412a06578e9d779a16b9e79ace18125ab50

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-2024-41092 being exploited?

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

### How serious is CVE-2024-41092?

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

### Which versions are affected by CVE-2024-41092?

Linux \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< f771b91f21c46ad1217328d05e72a2c7e3add535; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 29c0fdf49078ab161570d3d1c6e13d66f182717d; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< ca0fabd365a27a94a36e68a7a02df8ff3c13dac6; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 06dec31a0a5112a91f49085e8a8fa1a82296d5c7; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 414f4a31f7a811008fd9a33b06216b060bad18fc; \>= 0d86ee35097ae0f1c2c50f2b8035ef480e25e4f1, \< 996c3412a06578e9d779a16b9e79ace18125ab50; Linux 5.8.

### Is there a fix for CVE-2024-41092?

Yes. Fixed in Linux 29c0fdf49078ab161570d3d1c6e13d66f182717d, Linux 06dec31a0a5112a91f49085e8a8fa1a82296d5c7, Linux 414f4a31f7a811008fd9a33b06216b060bad18fc, Linux 996c3412a06578e9d779a16b9e79ace18125ab50. Upgrade Linux to 996c3412a06578e9d779a16b9e79ace18125ab50 or later.

### How do I check if I'm affected by CVE-2024-41092?

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/f771b91f21c46ad1217328d05e72a2c7e3add535>
- patch: <https://git.kernel.org/stable/c/29c0fdf49078ab161570d3d1c6e13d66f182717d>
- patch: <https://git.kernel.org/stable/c/ca0fabd365a27a94a36e68a7a02df8ff3c13dac6>
- patch: <https://git.kernel.org/stable/c/06dec31a0a5112a91f49085e8a8fa1a82296d5c7>
- patch: <https://git.kernel.org/stable/c/414f4a31f7a811008fd9a33b06216b060bad18fc>
- patch: <https://git.kernel.org/stable/c/996c3412a06578e9d779a16b9e79ace18125ab50>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## 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-2024-41092>

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