Memory Leak Vulnerability in drm: msm Package
Summary
GSD-2022-1002748: drm: msm: fix possible memory leak in mdp5_crtc_cursor_set(). Affects Kernel versions >= e172d10a9c4acc69bb07cbe9142ded2df791ff1f, < d63ffe3fb3f8327ca21cf91b6a14a2961bc629b4. 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: msm package is a component of the Linux Kernel that provides support for display controllers on Qualcomm Snapdragon SoCs. It includes drivers for managing graphics and display functionality on devices using these processors. The package is responsible for handling various tasks related to display output, including managing the cursor. The vulnerability identified in this package can lead to a memory leak when setting the cursor on certain devices.
Vulnerability Detail
The vulnerability in the drm: msm package occurs in the mdp5_crtc_cursor_set() function. When this function is called to set the cursor, there is a possibility of a memory leak. This means that memory allocated during the cursor set operation may not be properly freed, leading to a gradual depletion of available memory resources. While the impact and attack plausibility of this vulnerability have not been proven, it is important to address it to prevent potential memory exhaustion and system instability.
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 avoid the memory leak by refraining from using the cursor functionality in the affected version of the drm: msm package. However, this may limit the display capabilities of the device and is not a recommended long-term solution. It is advisable to apply the fix by updating the Linux Kernel to the latest version.
Conclusion
The memory leak vulnerability in the drm: msm package can lead to memory exhaustion and system instability. It is crucial to update the Linux Kernel to version v5.18.3 or later to fix this issue. Refraining from using the cursor functionality can serve as a temporary workaround, but it is not a recommended long-term solution. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The impact of this vulnerability can potentially lead to memory exhaustion and system instability due to the gradual depletion of available memory resources.
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 to the playground, and it will alert you if the vulnerability is present.
At the time of this report, there is no known exploit for this vulnerability. However, it is still important to address it to prevent potential memory exhaustion and system instability.
While refraining from using the cursor functionality can temporarily mitigate the vulnerability, it is not a recommended long-term solution. Updating the Linux Kernel to the latest version is the best way to address the issue.
This vulnerability specifically affects the drm: msm package in the Linux Kernel. However, it is always recommended to keep all software components up to date to ensure overall system security.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.