CVE-2026-23467
JSON

5.5medium

drm/i915/dmc: Fix an unlikely NULL pointer deference at probe

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.14% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm/i915/dmc: Fix an unlikely NULL pointer deference at probe intel_dmc_update_dc6_allowed_count() oopses when DMC hasn't been initialized, and dmc is thus NULL. That would be the case when the call path is intel_power_domains_init_hw() -> {skl,bxt,icl}_display_core_init() -> gen9_set_dc_state() -> intel_dmc_update_dc6_allowed_count(), as intel_power_domains_init_hw() is called *before* intel_dmc_init(). However, gen9_set_dc_state() calls intel_dmc_update_dc6_allowed_count() conditionally, depending on the current and target DC states. At probe, the target is disabled, but if DC6 is enabled, the function is called, and an oops follows. Apparently it's quite unlikely that DC6 is enabled at probe, as we haven't seen this failure mode before. It is also strange to have DC6 enabled at boot, since that would require the DMC firmware (loaded by BIOS); the BIOS loading the DMC firmware and the driver stopping / reprogramming the firmware is a poorly specified sequence and as such unlikely an intentional BIOS behaviour. It's more likely that BIOS is leaving an unintentionally enabled DC6 HW state behind (without actually loading the required DMC firmware for this). The tracking of the DC6 allowed counter only works if starting / stopping the counter depends on the _SW_ DC6 state vs. the current _HW_ DC6 state (since stopping the counter requires the DC5 counter captured when the counter was started). Thus, using the HW DC6 state is incorrect and it also leads to the above oops. Fix both issues by using the SW DC6 state for the tracking. This is v2 of the fix originally sent by Jani, updated based on the first Link: discussion below. (cherry picked from commit 2344b93af8eb5da5d496b4e0529d35f0f559eaf0)

Affected

Product or packageVersionsReported by
Linux Linuxfrom 88c1f9a4d36de61f87cc52aac670020b13d1ccaa before 0b35d11fbbcfd1079c8489282a341944228835e3, from 88c1f9a4d36de61f87cc52aac670020b13d1ccaa before 631317825d44283abfe7a8374f13a76ce2032bb8, from 88c1f9a4d36de61f87cc52aac670020b13d1ccaa before ac57eb3b7d2ad649025b5a0fa207315f755ac4f6, 6.16
Not affected: before 6.16, from 6.18.20 up to 6.18.*, from 6.19.10 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.16 before 6.18.20, from 6.19 before 6.19.10, 7.0NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: drm/i915/dmc: Fix an unlikely NULL pointer deference at probe intel_dmc_update_dc6_allowed_count() oopses when DMC hasn't been initialized, and dmc is thus NULL. That would be the case when the call path is intel_power_domains_init_hw() -> {skl,bxt,icl}_display_core_init() -> gen9_set_dc_state() -> intel_dmc_update_dc6_allowed_count(), as intel_power_domains_init_hw() is called *before* intel_dmc_init(). However, gen9_set_dc_state() calls intel_dmc_update_dc6_allowed_count() conditionally, depending on the current and target DC states. At probe, the target is disabled, but if DC6 is enabled, the function is called, and an oops follows. Apparently it's quite unlikely that DC6 is enabled at probe, as we haven't seen this failure mode before. It is also strange to have DC6 enabled at boot, since that would require the DMC firmware (loaded by BIOS); the BIOS loading the DMC firmware and the driver stopping / reprogramming the firmware is a poorly specified sequence and as such unlikely an intentional BIOS behaviour. It's more likely that BIOS is leaving an unintentionally enabled DC6 HW state behind (without actually loading the required DMC firmware for this). The tracking of the DC6 allowed counter only works if starting / stopping the counter depends on the _SW_ DC6 state vs. the current _HW_ DC6 state (since stopping the counter requires the DC5 counter captured when the counter was started). Thus, using the HW DC6 state is incorrect and it also leads to the above oops. Fix both issues by using the SW DC6 state for the tracking. This is v2 of the fix originally sent by Jani, updated based on the first Link: discussion below. (cherry picked from commit 2344b93af8eb5da5d496b4e0529d35f0f559eaf0)

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: drm/i915/dmc: Corrige una desreferencia de puntero NULL poco probable durante la sonda intel_dmc_update_dc6_allowed_count() falla (oops) cuando DMC no ha sido inicializado, y dmc es por lo tanto NULL. Ese sería el caso cuando la ruta de llamada es intel_power_domains_init_hw() -> {skl,bxt,icl}_display_core_init() -> gen9_set_dc_state() -> intel_dmc_update_dc6_allowed_count(), ya que intel_power_domains_init_hw() es llamado antes de intel_dmc_init(). Sin embargo, gen9_set_dc_state() llama a intel_dmc_update_dc6_allowed_count() condicionalmente, dependiendo de los estados DC actual y objetivo. Durante la sonda, el objetivo está deshabilitado, pero si DC6 está habilitado, la función es llamada, y un oops ocurre. Aparentemente es bastante improbable que DC6 esté habilitado durante la sonda, ya que no hemos visto este modo de fallo antes. También es extraño tener DC6 habilitado durante el arranque, ya que eso requeriría el firmware DMC (cargado por la BIOS); la carga del firmware DMC por parte de la BIOS y el controlador deteniendo / reprogramando el firmware es una secuencia mal especificada y, como tal, es poco probable que sea un comportamiento intencional de la BIOS. Es más probable que la BIOS esté dejando un estado HW DC6 habilitado de forma no intencional (sin cargar realmente el firmware DMC requerido para esto). El seguimiento del contador permitido de DC6 solo funciona si el inicio / detención del contador depende del estado DC6 _SW_ frente al estado DC6 _HW_ actual (ya que detener el contador requiere el contador DC5 capturado cuando se inició el contador). Por lo tanto, usar el estado HW DC6 es incorrecto y también conduce al oops mencionado. Corrige ambos problemas usando el estado SW DC6 para el seguimiento. Esta es la v2 de la corrección enviada originalmente por Jani, actualizada basándose en la primera discusión de Enlace: a continuación. (seleccionado de la revisión 2344b93af8eb5da5d496b4e0529d35f0f559eaf0)

References

Sources

SourceRecordLicence
CVE ListCVE-2026-23467 changed 2026-11-05CVE Terms of Use
NVDCVE-2026-23467 changed 2026-11-05Public domain