Vulnerability in drm/panfrost Package: Shrinker List Corruption by madvise IOCTL
Summary
GSD-2022-1004195: drm/panfrost: Fix shrinker list corruption by madvise IOCTL. Affects Kernel versions >= 013b6510131568ce4e01856d5360bfdfe9c3632f, < f036392edd9c49090781d8cca26ad6557a63bae4. 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/panfrost package is a component of the Linux Kernel that provides support for the Panfrost GPU driver. This driver is responsible for enabling graphics acceleration on devices that utilize the Arm Mali Midgard or Bifrost GPUs. The package allows applications to interact with the GPU hardware and perform various graphics-related tasks. However, a vulnerability has been discovered in the package that can lead to shrinker list corruption when the madvise IOCTL is used.
Vulnerability Detail
The vulnerability in the drm/panfrost package arises from a flaw in the handling of the madvise IOCTL. By exploiting this vulnerability, an attacker could potentially corrupt the shrinker list, which is used for managing memory resources. This corruption can result in various issues, such as memory leaks or crashes, and may even allow an attacker to execute arbitrary code with elevated privileges. The vulnerability was introduced in version v5.4 of the Linux Kernel and has been fixed in version v5.18.13.
How To Fix
No fixed version is published for this vulnerability.
To fix this vulnerability, it is recommended to update the Linux Kernel to version v5.18.13 or later. This can be done by obtaining the latest kernel source code from the official Linux Kernel repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling it for the target system. Alternatively, users can wait for their Linux distribution to provide an updated package that includes the fix.
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 using the madvise IOCTL in applications that interact with the drm/panfrost package. By refraining from using this specific IOCTL, the risk of triggering the vulnerability can be mitigated. However, this workaround may not be feasible in all scenarios, especially if the IOCTL is required for certain functionality.
Conclusion
In conclusion, the vulnerability in the drm/panfrost package can lead to shrinker list corruption and potential code execution with elevated privileges. It is crucial to update the Linux Kernel to version v5.18.13 or later to mitigate this vulnerability. If you require further assistance or support in addressing this vulnerability, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can lead to shrinker list corruption, resulting in memory leaks, crashes, and potential code execution with elevated privileges.
You can use the Vulert Playground (https://vulert.com/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 known vulnerabilities.
Yes, the vulnerability has been fixed in version v5.18.13 of the Linux Kernel. It is recommended to update to this version or a later one to mitigate the risk.
As a temporary measure, you can avoid using the madvise IOCTL in applications that interact with the drm/panfrost package. However, this may not be a feasible solution in all cases.
You can refer to the vulnerability details in the GSD Database: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1004xxx/GSD-2022-1004195.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.
Follow Vulert in Google
Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.