Invalid Parameter Check in dpu_setup_dspp_pcc in Kernel
Summary
GSD-2022-1000201: drm/msm/dpu: invalid parameter check in dpu_setup_dspp_pcc. Affects Kernel versions >= 4259ff7ae509ed880b3a7bb685972c3a3bf4b74b, < 93a6e920d8ccb4df846c03b6e72f7e08843d294c. 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 Kernel is a crucial component of the Linux operating system that acts as a bridge between the hardware and software layers. It provides essential functionalities and services to enable the proper functioning of the system. The dpu_setup_dspp_pcc function in the drm/msm/dpu module of the Kernel is responsible for setting up the Display Subsystem Processor (DSPP) Picture Compression Control (PCC) parameters. These parameters control various aspects of picture compression for display output. However, a vulnerability exists in the parameter validation logic of this function, which can lead to potential security issues.
Vulnerability Detail
The vulnerability arises from an invalid parameter check in the dpu_setup_dspp_pcc function. Due to this flaw, improper input validation can occur, allowing an attacker to supply malicious values for the PCC parameters. This could result in various security risks, such as buffer overflows, memory corruption, or privilege escalation. Exploiting this vulnerability may lead to arbitrary code execution or denial of service attacks. The vulnerability was introduced in version v5.8 of the Linux Kernel and was fixed in version v5.10.96.
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 apply the patch manually to their Kernel version if updating to the latest version is not feasible. The patch can be obtained from the Linux Kernel repository and applied following the provided instructions. However, it is strongly advised to update to the latest stable version of the Kernel to benefit from the comprehensive fix and avoid any potential complications.
Conclusion
The vulnerability in the dpu_setup_dspp_pcc function of the Kernel's drm/msm/dpu module can allow an attacker to supply malicious values for PCC parameters, leading to potential security risks. It is crucial to update the Linux Kernel to version v5.10.96 or later to mitigate this vulnerability. Alternatively, users can apply the provided patch manually, but updating to the latest stable version is strongly recommended. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
This vulnerability can potentially allow an attacker to supply malicious values for PCC parameters, leading to security risks such as buffer overflows, memory corruption, or privilege escalation. Exploiting this vulnerability may result in arbitrary code execution or denial of service attacks.
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 in real-time to identify any open-source vulnerabilities, including this one.
Yes, a fix for this vulnerability is available in version v5.10.96 of the Linux Kernel. It is recommended to update to this version or a later one to ensure the vulnerability is properly addressed.
Yes, a workaround is available for this vulnerability. Users can manually apply the patch provided by the Linux Kernel repository to their current version of the Kernel. However, it is strongly advised to update to the latest stable version of the Kernel to benefit from the comprehensive fix and avoid any potential complications.
For more detailed information about this vulnerability, including its technical aspects and the specific fix implemented, you can refer to the vulnerability report in the GSD database at https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000201.json.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.