{"id":"CVE-2024-27041","summary":"drm/amd/display: fix NULL checks for adev-\u003edm.dc in amdgpu_dm_fini()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: fix NULL checks for adev-\u003edm.dc in amdgpu_dm_fini()\n\nSince 'adev-\u003edm.dc' in amdgpu_dm_fini() might turn out to be NULL\nbefore the call to dc_enable_dmub_notifications(), check\nbeforehand to ensure there will not be a possible NULL-ptr-deref\nthere.\n\nAlso, since commit 1e88eb1b2c25 (\"drm/amd/display: Drop\nCONFIG_DRM_AMD_DC_HDCP\") there are two separate checks for NULL in\n'adev-\u003edm.dc' before dc_deinit_callbacks() and dc_dmub_srv_destroy().\nClean up by combining them all under one 'if'.\n\nFound by Linux Verification Center (linuxtesting.org) with static\nanalysis tool SVACE.","modified":"2026-04-02T10:06:56.403472Z","published":"2024-05-01T12:54:04.111Z","related":["SUSE-SU-2024:1644-1","SUSE-SU-2024:1659-1","SUSE-SU-2024:1663-1","SUSE-SU-2025:20008-1","SUSE-SU-2025:20028-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27041.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1c62697e4086de988b31124fb8c79c244ea05f2b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2a3cfb9a24a28da9cc13d2c525a76548865e182c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca2eb375db76fd50f31afdd67d6ca4f833254957"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e040f1fbe9abae91b12b074cfc3bbb5367b79811"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27041.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27041"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"81927e2808be5adace93c2012d45d6938d3a7aa0"},{"fixed":"e040f1fbe9abae91b12b074cfc3bbb5367b79811"},{"fixed":"ca2eb375db76fd50f31afdd67d6ca4f833254957"},{"fixed":"1c62697e4086de988b31124fb8c79c244ea05f2b"},{"fixed":"2a3cfb9a24a28da9cc13d2c525a76548865e182c"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27041.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}