CVE-2024-38552

Source
https://cve.org/CVERecord?id=CVE-2024-38552
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38552.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-38552
Downstream
Related
Published
2024-06-19T13:35:24.067Z
Modified
2026-03-23T05:11:39.029507579Z
Summary
drm/amd/display: Fix potential index out of bounds in color transformation function
Details

In the Linux kernel, the following vulnerability has been resolved:

drm/amd/display: Fix potential index out of bounds in color transformation function

Fixes index out of bounds issue in the color transformation function. 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, an error message is logged and the function returns false to indicate an error.

Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10cmcommon.c:405 cmhelpertranslatecurvetohwformat() error: buffer overflow 'outputtf->tfpts.red' 1025 <= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10cmcommon.c:406 cmhelpertranslatecurvetohwformat() error: buffer overflow 'outputtf->tfpts.green' 1025 <= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10cmcommon.c:407 cmhelpertranslatecurvetohwformat() error: buffer overflow 'outputtf->tfpts.blue' 1025 <= s32max

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38552.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
b629596072e5fa901c84f9e88d845a696ee32942
Fixed
604c506ca43fce52bb882cff9c1fdf2ec3b4029c
Fixed
e280ab978c81443103d7c61bdd1d8d708cf6ed6d
Fixed
04bc4d1090c343025d69149ca669a27c5b9c34a7
Fixed
ced9c4e2289a786b8fa684d8893b7045ea53ef7e
Fixed
98b8a6bfd30d07a19cfacdf82b50f84bf3360869
Fixed
4e8c8b37ee84b3b19c448d2b8e4c916d2f5b9c86
Fixed
123edbae64f4d21984359b99c6e79fcde31c6123
Fixed
7226ddf3311c5e5a7726ad7d4e7b079bb3cfbb29
Fixed
63ae548f1054a0b71678d0349c7dc9628ddd42ca

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38552.json"