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

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-05-01T12:54:04.111Z
- Modified: 2026-10-30T13:17:25.250Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.14 before 6.6.23; from 6.7 before 6.7.11; from 6.8 before 6.8.2

## References

- <https://git.kernel.org/stable/c/cef0f2fe65ccee638e48fd5c1d590a3c0539acdd>
- <https://git.kernel.org/stable/c/e040f1fbe9abae91b12b074cfc3bbb5367b79811> (patch)
- <https://git.kernel.org/stable/c/ca2eb375db76fd50f31afdd67d6ca4f833254957> (patch)
- <https://git.kernel.org/stable/c/1c62697e4086de988b31124fb8c79c244ea05f2b> (patch)
- <https://git.kernel.org/stable/c/2a3cfb9a24a28da9cc13d2c525a76548865e182c> (patch)

## Sources

- CVE List: [CVE-2024-27041](https://www.cve.org/CVERecord?id=CVE-2024-27041), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2024-27041](https://nvd.nist.gov/vuln/detail/CVE-2024-27041), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2024-27041 · Whole record: https://cve.day/CVE-2024-27041.json · Rebuilt by cve.day 2026-11-25T22:58:39.793Z
