{"id":"CVE-2024-26667","state":"PUBLISHED","title":"drm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup\n\nThe commit 8b45a26f2ba9 (\"drm/msm/dpu: reserve cdm blocks for writeback\nin case of YUV output\") introduced a smatch warning about another\nconditional block in dpu_encoder_helper_phys_cleanup() which had assumed\nhw_pp will always be valid which may not necessarily be true.\n\nLets fix the other conditional block by making sure hw_pp is valid\nbefore dereferencing it.\n\nPatchwork: https://patchwork.freedesktop.org/patch/574878/","publishedAt":"2024-04-02T06:22:15.789Z","updatedAt":"2026-05-11T20:01:51.667Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"fb8bfc6ea3cd8c5ac3d35711d064e2f6646aec17","versionType":"git"},{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"79592a6e7bdc1d05460c95f891f5e5263a107af8","versionType":"git"},{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"eb4f56f3ff5799ca754ae6d811803a63fe25a4a2","versionType":"git"},{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.78","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.17","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.5","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","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/msm/disp/dpu1/dpu_encoder.c"]}],"references":["https://git.kernel.org/stable/c/fb8bfc6ea3cd8c5ac3d35711d064e2f6646aec17","https://git.kernel.org/stable/c/79592a6e7bdc1d05460c95f891f5e5263a107af8","https://git.kernel.org/stable/c/eb4f56f3ff5799ca754ae6d811803a63fe25a4a2","https://git.kernel.org/stable/c/7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:10.607Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/26xxx/CVE-2024-26667.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-26667","state":"PUBLISHED","datePublished":"2024-04-02T06:22:15.789Z","dateUpdated":"2026-05-11T20:01:51.667Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-19T14:20:24.149Z"},"containers":{"cna":{"title":"drm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/msm/dpu: check for valid hw_pp in dpu_encoder_helper_phys_cleanup\n\nThe commit 8b45a26f2ba9 (\"drm/msm/dpu: reserve cdm blocks for writeback\nin case of YUV output\") introduced a smatch warning about another\nconditional block in dpu_encoder_helper_phys_cleanup() which had assumed\nhw_pp will always be valid which may not necessarily be true.\n\nLets fix the other conditional block by making sure hw_pp is valid\nbefore dereferencing it.\n\nPatchwork: https://patchwork.freedesktop.org/patch/574878/"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"fb8bfc6ea3cd8c5ac3d35711d064e2f6646aec17","versionType":"git"},{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"79592a6e7bdc1d05460c95f891f5e5263a107af8","versionType":"git"},{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"eb4f56f3ff5799ca754ae6d811803a63fe25a4a2","versionType":"git"},{"version":"ae4d721ce10057a4aa9f0d253e0d460518a9ef75","status":"affected","lessThan":"7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.19","versionType":"semver"},{"version":"6.1.78","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.17","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.7.5","status":"unaffected","lessThanOrEqual":"6.7.*","versionType":"semver"},{"version":"6.8","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/msm/disp/dpu1/dpu_encoder.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/fb8bfc6ea3cd8c5ac3d35711d064e2f6646aec17"},{"url":"https://git.kernel.org/stable/c/79592a6e7bdc1d05460c95f891f5e5263a107af8"},{"url":"https://git.kernel.org/stable/c/eb4f56f3ff5799ca754ae6d811803a63fe25a4a2"},{"url":"https://git.kernel.org/stable/c/7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:01:51.667Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.1.78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.6.17"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.7.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.19","versionEndExcluding":"6.8"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-26667","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-04-02T14:52:01.854663Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-04T17:49:40.751Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/fb8bfc6ea3cd8c5ac3d35711d064e2f6646aec17","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/79592a6e7bdc1d05460c95f891f5e5263a107af8","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/eb4f56f3ff5799ca754ae6d811803a63fe25a4a2","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/7f3d03c48b1eb6bc45ab20ca98b8b11be25f9f52","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T00:14:12.896Z"}}]}}}