Memory Leak in imx_pd_connector_get_modes in drm/imx
Summary
GSD-2022-1002473: drm/imx: Fix memory leak in imx_pd_connector_get_modes. Affects Kernel versions >= 76ecd9c9fb24b014a6f33fbb1287ede3be12158b, < d2c2758cfb0262637fd93350bdc8ad485fb1dd61. 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/imx module is a component of the Linux Kernel that provides support for display controllers found in i.MX SoCs. It enables the management and configuration of display connectors and modes. The imx_pd_connector_get_modes function is responsible for retrieving the supported display modes for a given connector. However, a memory leak vulnerability exists in this function, which can lead to the exhaustion of system resources over time.
Vulnerability Detail
The memory leak vulnerability in imx_pd_connector_get_modes allows an attacker to continuously request display modes for a connector without releasing the allocated memory. This can result in the depletion of available memory resources, leading to system instability or denial of service. The vulnerability was introduced in Linux Kernel version 4.8 and was fixed in version 4.9.311.
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 limit the number of display mode requests for connectors to mitigate the impact of the memory leak. By monitoring and controlling the frequency of mode requests, the risk of resource exhaustion can be reduced. However, this is not a permanent solution and updating the Kernel is still recommended.
Conclusion
The memory leak vulnerability in imx_pd_connector_get_modes poses a risk of resource exhaustion in systems utilizing the Linux Kernel. It is crucial to update the Kernel to version 4.9.311 or later to mitigate this vulnerability. Limiting the number of display mode requests can provide temporary relief, but it is not a permanent solution. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to the exhaustion of system resources, potentially causing system instability or denial of service.
You can use Vulert's 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 provide real-time alerts for open-source vulnerabilities, including this one.
At the time of this report, there is no known exploit for this vulnerability. However, it is still important to patch the Kernel to prevent potential exploitation in the future.
Limiting the number of display mode requests for connectors can help mitigate the impact of the memory leak. However, this is not a permanent solution, and updating the Kernel is still recommended.
The primary solution is to update the Linux Kernel to version 4.9.311 or later. This ensures that the memory leak issue in imx_pd_connector_get_modes is addressed. There are no known alternative solutions.
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.