{"id":"CVE-2024-27041","state":"PUBLISHED","title":"drm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini()\n\nSince 'adev->dm.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->dm.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.","publishedAt":"2024-05-01T12:54:04.111Z","updatedAt":"2026-10-30T12:18:09.560Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"cef0f2fe65ccee638e48fd5c1d590a3c0539acdd","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"e040f1fbe9abae91b12b074cfc3bbb5367b79811","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"ca2eb375db76fd50f31afdd67d6ca4f833254957","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"1c62697e4086de988b31124fb8c79c244ea05f2b","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"2a3cfb9a24a28da9cc13d2c525a76548865e182c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c"]}],"references":["https://git.kernel.org/stable/c/cef0f2fe65ccee638e48fd5c1d590a3c0539acdd","https://git.kernel.org/stable/c/e040f1fbe9abae91b12b074cfc3bbb5367b79811","https://git.kernel.org/stable/c/ca2eb375db76fd50f31afdd67d6ca4f833254957","https://git.kernel.org/stable/c/1c62697e4086de988b31124fb8c79c244ea05f2b","https://git.kernel.org/stable/c/2a3cfb9a24a28da9cc13d2c525a76548865e182c"],"weaknesses":["CWE-476"],"ingestedAt":"2026-10-30T12:34:06.950Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/27xxx/CVE-2024-27041.json","commit":"db8103c5921aac81d5d90efcf3745980dafabf49","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-27041","state":"PUBLISHED","datePublished":"2024-05-01T12:54:04.111Z","dateUpdated":"2026-10-30T12:18:09.560Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.212Z"},"containers":{"cna":{"title":"drm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: fix NULL checks for adev->dm.dc in amdgpu_dm_fini()\n\nSince 'adev->dm.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->dm.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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"cef0f2fe65ccee638e48fd5c1d590a3c0539acdd","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"e040f1fbe9abae91b12b074cfc3bbb5367b79811","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"ca2eb375db76fd50f31afdd67d6ca4f833254957","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"1c62697e4086de988b31124fb8c79c244ea05f2b","versionType":"git"},{"version":"81927e2808be5adace93c2012d45d6938d3a7aa0","status":"affected","lessThan":"2a3cfb9a24a28da9cc13d2c525a76548865e182c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.23","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.11","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8.2","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cef0f2fe65ccee638e48fd5c1d590a3c0539acdd"},{"url":"https://git.kernel.org/stable/c/e040f1fbe9abae91b12b074cfc3bbb5367b79811"},{"url":"https://git.kernel.org/stable/c/ca2eb375db76fd50f31afdd67d6ca4f833254957"},{"url":"https://git.kernel.org/stable/c/1c62697e4086de988b31124fb8c79c244ea05f2b"},{"url":"https://git.kernel.org/stable/c/2a3cfb9a24a28da9cc13d2c525a76548865e182c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:18:09.560Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.23"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.7.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.8.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.9"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/e040f1fbe9abae91b12b074cfc3bbb5367b79811","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ca2eb375db76fd50f31afdd67d6ca4f833254957","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1c62697e4086de988b31124fb8c79c244ea05f2b","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/2a3cfb9a24a28da9cc13d2c525a76548865e182c","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:21:05.932Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"timestamp":"2024-05-24T14:44:31.681685Z","id":"CVE-2024-27041","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-476","type":"CWE","lang":"en","description":"CWE-476 NULL Pointer Dereference"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-11-01T15:50:14.011Z"}}]}}}