In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Initialize denominator defaults to 1
[WHAT & HOW] Variables, used as denominators and maybe not assigned to other values, should be initialized to non-zero to avoid DIVIDEBYZERO, as reported by Coverity.
(cherry picked from commit e2c4c6c10542ccfe4a0830bb6c9fd5b177b7bbb7)
[
{
"id": "CVE-2024-57950-085ede7e",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c",
"function": "CalculateBytePerPixelAndBlockSizes"
},
"digest": {
"function_hash": "106535159366360382356419412392916600169",
"length": 4913.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9d6afb4f9c338049662d27d169fba7dd60e337d",
"signature_version": "v1"
},
{
"id": "CVE-2024-57950-557d8324",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"192016627704785515908174868468988312050",
"326739084689859885138749819734997181438",
"7514653759049931437749061968958419392",
"138409087200440641921320278481813508292",
"36407164722853530616127730182670918206"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36b23e3baf9129d5b6c3a3a85b6b7ffb75ae287c",
"signature_version": "v1"
},
{
"id": "CVE-2024-57950-79ac57fd",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c",
"function": "CalculateBytePerPixelAndBlockSizes"
},
"digest": {
"function_hash": "106535159366360382356419412392916600169",
"length": 4913.0
},
"deprecated": false,
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@36b23e3baf9129d5b6c3a3a85b6b7ffb75ae287c",
"signature_version": "v1"
},
{
"id": "CVE-2024-57950-8140764f",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"192016627704785515908174868468988312050",
"326739084689859885138749819734997181438",
"7514653759049931437749061968958419392",
"138409087200440641921320278481813508292",
"36407164722853530616127730182670918206"
]
},
"deprecated": false,
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c9d6afb4f9c338049662d27d169fba7dd60e337d",
"signature_version": "v1"
}
]