In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Initialize denominators' default to 1
[WHAT & HOW] Variables used as denominators and maybe not assigned to other values, should not be 0. Change their default to 1 so they are never 0.
This fixes 10 DIVIDEBYZERO issues reported by Coverity.
[ { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9be768f08b16f020da376538b08463ac3a2ce8cd", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "function_hash": "19087822042925892093188358031878002742", "length": 422.0 }, "signature_type": "Function", "id": "CVE-2024-49899-01a3906b", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "256913137873261131142507559497917452996", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-032296aa", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f35cec5e4b9759b38c663d18eae4eaf30f36527", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "256913137873261131142507559497917452996", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-0d3a6e9b", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f35cec5e4b9759b38c663d18eae4eaf30f36527", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "function_hash": "187811033835931112533515590247841685186", "length": 466.0 }, "signature_type": "Function", "id": "CVE-2024-49899-26fb5038", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b995c0a6de6c74656a0c39cd57a0626351b13e3c", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "257875170852230793893398463808831914503", "159858695696217795838031218631381503068", "279075315628946910221732693079962048166", "137929059420406464048283462545628351440", "287017174671188514465107256423409490705" ] }, "signature_type": "Line", "id": "CVE-2024-49899-28988807", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "223755353465583382795798776826926437682", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-4c1313b7", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b995c0a6de6c74656a0c39cd57a0626351b13e3c", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "function_hash": "187811033835931112533515590247841685186", "length": 466.0 }, "signature_type": "Function", "id": "CVE-2024-49899-59de7839", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b995c0a6de6c74656a0c39cd57a0626351b13e3c", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "256913137873261131142507559497917452996", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-75f5a9c8", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b995c0a6de6c74656a0c39cd57a0626351b13e3c", "target": { "function": "CalculateVMGroupAndRequestTimes", "file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c" }, "deprecated": false, "digest": { "function_hash": "105035914591498825903807721947652760573", "length": 4466.0 }, "signature_type": "Function", "id": "CVE-2024-49899-921bffa4", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9be768f08b16f020da376538b08463ac3a2ce8cd", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "223755353465583382795798776826926437682", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-93107f38", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9be768f08b16f020da376538b08463ac3a2ce8cd", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "function_hash": "187811033835931112533515590247841685186", "length": 466.0 }, "signature_type": "Function", "id": "CVE-2024-49899-976adb4f", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b995c0a6de6c74656a0c39cd57a0626351b13e3c", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "223755353465583382795798776826926437682", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-97b8f58d", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f35cec5e4b9759b38c663d18eae4eaf30f36527", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "223755353465583382795798776826926437682", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-980a458b", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "257875170852230793893398463808831914503", "159858695696217795838031218631381503068", "279075315628946910221732693079962048166", "137929059420406464048283462545628351440", "287017174671188514465107256423409490705" ] }, "signature_type": "Line", "id": "CVE-2024-49899-b2e9a787", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9f35cec5e4b9759b38c663d18eae4eaf30f36527", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "function_hash": "19087822042925892093188358031878002742", "length": 422.0 }, "signature_type": "Function", "id": "CVE-2024-49899-b73a326a", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "function_hash": "19087822042925892093188358031878002742", "length": 422.0 }, "signature_type": "Function", "id": "CVE-2024-49899-c41318bd", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "function_hash": "187811033835931112533515590247841685186", "length": 466.0 }, "signature_type": "Function", "id": "CVE-2024-49899-c6f9f2bf", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9be768f08b16f020da376538b08463ac3a2ce8cd", "target": { "file": "drivers/gpu/drm/amd/display/dc/dml/dcn20/display_rq_dlg_calc_20.c" }, "deprecated": false, "digest": { "threshold": 0.9, "line_hashes": [ "256913137873261131142507559497917452996", "100816969708576367714570452764443759383", "199721698588606853896395303012459344561", "25696530112125389626132155066222898097" ] }, "signature_type": "Line", "id": "CVE-2024-49899-c94643a7", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7f8e93b862aba08d540f1e9e03e0ceb4d0cfd5fb", "target": { "function": "CalculateVMGroupAndRequestTimes", "file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c" }, "deprecated": false, "digest": { "function_hash": "105035914591498825903807721947652760573", "length": 4466.0 }, "signature_type": "Function", "id": "CVE-2024-49899-da7f8271", "signature_version": "v1" }, { "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b995c0a6de6c74656a0c39cd57a0626351b13e3c", "target": { "function": "get_bytes_per_element", "file": "drivers/gpu/drm/amd/display/dc/dml/dml1_display_rq_dlg_calc.c" }, "deprecated": false, "digest": { "function_hash": "19087822042925892093188358031878002742", "length": 422.0 }, "signature_type": "Function", "id": "CVE-2024-49899-ff1aa531", "signature_version": "v1" } ]