{"id":"CVE-2025-38205","state":"PUBLISHED","title":"drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Avoid divide by zero by initializing dummy pitch to 1\n\n[Why]\nIf the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated\nthen they can lead to a divide by zero in downstream callers like\nCalculateVMAndRowBytes()\n\n[How]\nInitialize dummy value to a value to avoid divide by zero.","publishedAt":"2025-07-04T13:37:25.242Z","updatedAt":"2026-09-07T15:44:46.431Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7966f319c66d9468623c6a6a017ecbc0dd79be75","status":"affected","lessThan":"03a3dbca3b8e55b88958ce1f54aaf678ded11c79","versionType":"git"},{"version":"7966f319c66d9468623c6a6a017ecbc0dd79be75","status":"affected","lessThan":"8044f981b2cf8c32fe1bd5d1fc991552cdf7ffe0","versionType":"git"},{"version":"7966f319c66d9468623c6a6a017ecbc0dd79be75","status":"affected","lessThan":"7e40f64896e8e3dca471e287672db5ace12ea0be","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","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/dc/dml2/dml2_translation_helper.c"]}],"references":["https://git.kernel.org/stable/c/03a3dbca3b8e55b88958ce1f54aaf678ded11c79","https://git.kernel.org/stable/c/8044f981b2cf8c32fe1bd5d1fc991552cdf7ffe0","https://git.kernel.org/stable/c/7e40f64896e8e3dca471e287672db5ace12ea0be"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/38xxx/CVE-2025-38205.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-38205","state":"PUBLISHED","datePublished":"2025-07-04T13:37:25.242Z","dateUpdated":"2026-09-07T15:44:46.431Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T04:51:23.994Z"},"containers":{"cna":{"title":"drm/amd/display: Avoid divide by zero by initializing dummy pitch to 1","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/amd/display: Avoid divide by zero by initializing dummy pitch to 1\n\n[Why]\nIf the dummy values in `populate_dummy_dml_surface_cfg()` aren't updated\nthen they can lead to a divide by zero in downstream callers like\nCalculateVMAndRowBytes()\n\n[How]\nInitialize dummy value to a value to avoid divide by zero."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7966f319c66d9468623c6a6a017ecbc0dd79be75","status":"affected","lessThan":"03a3dbca3b8e55b88958ce1f54aaf678ded11c79","versionType":"git"},{"version":"7966f319c66d9468623c6a6a017ecbc0dd79be75","status":"affected","lessThan":"8044f981b2cf8c32fe1bd5d1fc991552cdf7ffe0","versionType":"git"},{"version":"7966f319c66d9468623c6a6a017ecbc0dd79be75","status":"affected","lessThan":"7e40f64896e8e3dca471e287672db5ace12ea0be","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/gpu/drm/amd/display/dc/dml2/dml2_translation_helper.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.109","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.15.4","status":"unaffected","lessThanOrEqual":"6.15.*","versionType":"semver"},{"version":"6.16","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/dc/dml2/dml2_translation_helper.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/03a3dbca3b8e55b88958ce1f54aaf678ded11c79"},{"url":"https://git.kernel.org/stable/c/8044f981b2cf8c32fe1bd5d1fc991552cdf7ffe0"},{"url":"https://git.kernel.org/stable/c/7e40f64896e8e3dca471e287672db5ace12ea0be"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-09-07T15:44:46.431Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.109"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.15.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.16"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}