CVE-2024-49969: drm/amd/display: Fix index out of bounds in DCN30 color transformation
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 cm3helpertranslatecurvetohwformat 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
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
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 5.10.234-1Fixed in 6.1.129-1Fixed in 6.1.135-1Fixed in 6.12.25-1Fixed in 6.12.27-1 - Upgrade
Upgrade
debian/linux-6.1to a version that resolves this vulnerability.Fixed in 6.1.129-1~deb11u1 - Configuration
Update the Linux kernel source to include the bounds check in `cm3_helper_translate_curve_to_hw_format` in `drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_cm_common.c` so that 'i' is validated against the number of transfer function points (TRANSFER_FUNC_POINTS) before accessing `output_tf->tf_pts.{red,green,blue}`.
Linux kernel (drivers/gpu/drm/amd/display DCN30 color management) Apply the commit fix for dc n30 color transformation index out of bounds in cm3_helper_translate_curve_to_hw_format() = Replace/introduce bounds check to ensure index 'i' is within bounds before accessing transfer function points (TRANSFER_FUNC_POINTS)
Event History
Frequently Asked Questions
What is the severity of CVE-2024-49969?
CVE-2024-49969 has a medium severity rating due to its potential to cause index out of bounds issues in the Linux kernel.
How do I fix CVE-2024-49969?
To fix CVE-2024-49969, update the Linux kernel to a version that includes the patch, such as 6.1.123-1 or later.
Which versions of the Linux kernel are affected by CVE-2024-49969?
CVE-2024-49969 affects Linux kernel versions from 5.10.227 up to but not including 6.2.
What kind of vulnerability is CVE-2024-49969?
CVE-2024-49969 is an index out of bounds vulnerability found in the DCN30 color transformation function.
Is there a known exploit for CVE-2024-49969?
As of now, there is no public information indicating an active exploit for CVE-2024-49969.