Off-by-One Vulnerability in drm/amd/display Package
Summary
UVI-2021-1000376: drm/amd/display: Fix off by one in hdmi_14_process_transaction(). Affects Kernel versions >= 4c283fdac08abf3211533f70623c90a34f41d08d, < 403c4528e5887af3deb9838cb77a557631d1e138. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The drm/amd/display package is a component of the Linux Kernel that handles display functionality for AMD graphics cards. It provides drivers and support for various display interfaces, including HDMI. The package is responsible for processing transactions related to HDMI connections and ensuring proper display output. However, a vulnerability has been discovered in the hdmi_14_process_transaction() function, which can lead to an off-by-one error.
Vulnerability Detail
The off-by-one vulnerability in hdmi_14_process_transaction() function within the drm/amd/display package allows an attacker to manipulate memory adjacent to a buffer, potentially leading to memory corruption or arbitrary code execution. By exploiting this vulnerability, an attacker could gain unauthorized access to sensitive information, modify data, or disrupt the normal operation of the system. The vulnerability was introduced in Linux Kernel version v5.5 and has been fixed in version v5.10.37.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, users can disable HDMI functionality or disconnect HDMI devices from affected systems until the Linux Kernel is updated to a fixed version. Disabling HDMI can be achieved by removing the relevant kernel module or blacklisting it. However, this workaround may not be feasible for users who rely on HDMI for display purposes.
Conclusion
The off-by-one vulnerability in the drm/amd/display package's hdmi_14_process_transaction() function poses a potential security risk to systems utilizing AMD graphics cards. It is recommended to update the Linux Kernel to version v5.10.37 or later to mitigate this vulnerability. Users can also utilize the Vulert Playground at https://vulert.com/scanner to check if their system is affected and obtain further assistance in vulnerability remediation.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially allow an attacker to execute arbitrary code, gain unauthorized access to sensitive information, or disrupt the normal operation of the system.
You can use the Vulert Playground at Vulert Scanner to check if your system is affected by this vulnerability. Simply upload your package-lock.json file, and Vulert will analyze it for any open-source vulnerabilities, including this one.
At the time of this report, there is no known public exploit for this vulnerability. However, it is crucial to apply the recommended fix as soon as possible to mitigate any potential risks.
Yes, you can temporarily disable HDMI functionality or disconnect HDMI devices from affected systems until the Linux Kernel is updated to a fixed version. However, this may not be a viable solution for users who rely on HDMI for display purposes.
You can refer to the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ for more information about the fix. The vulnerability details can be found in the vulnerability database maintained by the Cloud Security Alliance at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2021/1000xxx/UVI-2021-1000376.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.