CVE-2024-27041
JSON

5.5medium

drm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini()

Severity
5.5medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini() Since 'adev->dm.dc' in amdgpu_dm_fini() might turn out to be NULL before the call to dc_enable_dmub_notifications(), check beforehand to ensure there will not be a possible NULL-ptr-deref there. Also, since commit 1e88eb1b2c25 ("drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP") there are two separate checks for NULL in 'adev->dm.dc' before dc_deinit_callbacks() and dc_dmub_srv_destroy(). Clean up by combining them all under one 'if'. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 81927e2808be5adace93c2012d45d6938d3a7aa0 before cef0f2fe65ccee638e48fd5c1d590a3c0539acdd, from 81927e2808be5adace93c2012d45d6938d3a7aa0 before e040f1fbe9abae91b12b074cfc3bbb5367b79811, from 81927e2808be5adace93c2012d45d6938d3a7aa0 before ca2eb375db76fd50f31afdd67d6ca4f833254957, from 81927e2808be5adace93c2012d45d6938d3a7aa0 before 1c62697e4086de988b31124fb8c79c244ea05f2b, from 81927e2808be5adace93c2012d45d6938d3a7aa0 before 2a3cfb9a24a28da9cc13d2c525a76548865e182c, 5.14
Not affected: before 5.14, from 6.1.191 up to 6.1.*, from 6.6.23 up to 6.6.*, from 6.7.11 up to 6.7.*, from 6.8.2 up to 6.8.*, from 6.9 up to *
CVE List
linux linux_kernelfrom 5.14 before 6.6.23, from 6.7 before 6.7.11, from 6.8 before 6.8.2NVD

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/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini() Since 'adev->dm.dc' in amdgpu_dm_fini() might turn out to be NULL before the call to dc_enable_dmub_notifications(), check beforehand to ensure there will not be a possible NULL-ptr-deref there. Also, since commit 1e88eb1b2c25 ("drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP") there are two separate checks for NULL in 'adev->dm.dc' before dc_deinit_callbacks() and dc_dmub_srv_destroy(). Clean up by combining them all under one 'if'. Found by Linux Verification Center (linuxtesting.org) with static analysis tool SVACE.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: drm/amd/display: corrige comprobaciones NULL para adev->dm.dc en amdgpu_dm_fini() Dado que 'adev->dm.dc' en amdgpu_dm_fini() podría resultar ser NULL antes de llamar a dc_enable_dmub_notifications(), verifique de antemano para asegurarse de que no habrá un posible NULL-ptr-deref allí. Además, desde la confirmación 1e88eb1b2c25 ("drm/amd/display: Drop CONFIG_DRM_AMD_DC_HDCP") hay dos comprobaciones separadas para NULL en 'adev->dm.dc' antes de dc_deinit_callbacks() y dc_dmub_srv_destroy(). Limpia combinándolos todos bajo un solo "si". Encontrado por el Centro de verificación de Linux (linuxtesting.org) con la herramienta de análisis estático SVACE.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-27041 changed 2026-10-30CVE Terms of Use
NVDCVE-2024-27041 changed 2026-10-30Public domain