CVE-2024-49895: drm/amd/display: Fix index out of bounds in DCN30 degamma hardware format translation
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/display: Fix index out of bounds in DCN30 degamma hardware format translation
This commit addresses a potential index out of bounds issue in the cm3helpertranslatecurvetodegammahwformat 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.
Reported by smatch: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30cmcommon.c:338 cm3helpertranslatecurvetodegammahwformat() error: buffer overflow 'outputtf->tfpts.red' 1025 <= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30cmcommon.c:339 cm3helpertranslatecurvetodegammahwformat() error: buffer overflow 'outputtf->tfpts.green' 1025 <= s32max drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30cmcommon.c:340 cm3helpertranslatecurvetodegammahwformat() error: buffer overflow 'outputtf->tfpts.blue' 1025 <= s32max
Other sources
This CVE was automatically created from a reference found in an email or other text. If you are reading this, then this CVE entry is probably erroneous, since this text should be replaced by the official CVE description automatically.
— Launchpad
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49895?
CVE-2024-49895 has a severity rating that indicates a potential risk of exploitation due to its index out of bounds vulnerability.
How do I fix CVE-2024-49895?
To fix CVE-2024-49895, users should update to the patched versions of the Linux kernel, specifically 6.1.123-1 or later.
Which versions of the Linux kernel are affected by CVE-2024-49895?
CVE-2024-49895 affects the Linux kernel versions from 5.10.224 and earlier up to 6.11.3.
Is there a specific patch for CVE-2024-49895?
Yes, the specific commit addressing CVE-2024-49895 has been made available in the Linux kernel updates.
What does CVE-2024-49895 impact?
CVE-2024-49895 impacts the function responsible for degamma hardware format translation in the AMD display component of the Linux kernel.