In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix index out of bounds in DCN30 color transformation
This commit addresses a potential index out of bounds issue in the
cm3_helper_translate_curve_to_hw_format function in the DCN30 color
management module. The issue could occur when the index 'i' exceeds the
number of transfer function points (TRANSFERFUNCPOINTS).
The fix adds a check to ensure 'i' is within bounds before accessing the transfer function points. If 'i' is out of bounds, the function returns false to indicate an error.
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30cmcommon.c:180 cm3helpertranslatecurvetohwformat() error: buffer overflow 'outputtf->tfpts.red' 1025 <= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30cmcommon.c:181 cm3helpertranslatecurvetohwformat() error: buffer overflow 'outputtf->tfpts.green' 1025 <= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30cmcommon.c:182 cm3helpertranslatecurvetohwformat() error: buffer overflow 'outputtf->tfpts.blue' 1025 <= s32max
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/49xxx/CVE-2024-49969.json",
"cna_assigner": "Linux"
}[
{
"signature_type": "Function",
"deprecated": false,
"digest": {
"function_hash": "162429978992902576270666034522679887588",
"length": 4146.0
},
"id": "CVE-2024-49969-78685b61",
"signature_version": "v1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d81873f9e715b72d4f8d391c8eb243946f784dfc",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_cm_common.c",
"function": "cm3_helper_translate_curve_to_hw_format"
}
},
{
"signature_type": "Line",
"signature_version": "v1",
"target": {
"file": "drivers/gpu/drm/amd/display/dc/dcn30/dcn30_cm_common.c"
},
"id": "CVE-2024-49969-a0419274",
"deprecated": false,
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d81873f9e715b72d4f8d391c8eb243946f784dfc",
"digest": {
"line_hashes": [
"238859981966496888006416575419836739826",
"235940808033168275375467579524913701228",
"223070819548163611788376148271485883822",
"247733906366201996708968909101413354626"
],
"threshold": 0.9
}
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-49969.json"