---
id: CVE-2024-58074
title: 'drm/i915: Grab intel_display from the encoder to avoid potential oopsies'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  drm/i915: Grab intel_display from the encoder to avoid potential oopsies

  Grab the intel_display from 'encoder' rather than 'state'
  in the encoder hooks to avoid the ma…
severity: none
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a <
    3a03ef592ef9b900698b46703015f9134721479c
  - >-
    Linux >= ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a <
    1885401569f24eb35c631bcc4e6543360dbe9292
  - >-
    Linux >= ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a <
    dc3806d9eb66d0105f8d55d462d4ef681d9eac59
  - Linux 6.12
published: '2025-03-06'
updated: '2026-10-21'
sourceUpdated: '2026-10-21T12:35:51.173Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2024-58074'
references:
  - url: 'https://git.kernel.org/stable/c/3a03ef592ef9b900698b46703015f9134721479c'
  - url: 'https://git.kernel.org/stable/c/1885401569f24eb35c631bcc4e6543360dbe9292'
  - url: 'https://git.kernel.org/stable/c/dc3806d9eb66d0105f8d55d462d4ef681d9eac59'
tags:
  - cve.org
epss: 0.00214
epssPercentile: 0.11681
ingestedAt: '2026-10-21T12:48:53.720Z'
---

## Overview

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

drm/i915: Grab intel_display from the encoder to avoid potential oopsies

Grab the intel_display from 'encoder' rather than 'state'
in the encoder hooks to avoid the massive footgun that is
intel_sanitize_encoder(), which passes NULL as the 'state'
argument to encoder .disable() and .post_disable().

TODO: figure out how to actually fix intel_sanitize_encoder()...

## Affected

- `Linux >= ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a < 3a03ef592ef9b900698b46703015f9134721479c`
- `Linux >= ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a < 1885401569f24eb35c631bcc4e6543360dbe9292`
- `Linux >= ab0b0eb5c85c5961913bdb9b8011cc8f5c14978a < dc3806d9eb66d0105f8d55d462d4ef681d9eac59`
- `Linux 6.12`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
