Vulnerability in Kernel: mtd: rawnand: gpmi: don't leak PM reference in error path
Summary
GSD-2022-1000356: mtd: rawnand: gpmi: don't leak PM reference in error path. Affects Kernel versions >= 29218853877a748a2ca41d9957a84b2d6a7f56a7, < 4cd3281a910a5adf73b2a0a82241dd67844d0b25. 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 critical component of the Linux operating system that manages communication between hardware and software. It provides essential functions and services to enable the proper functioning of the system. The mtd (Memory Technology Devices) subsystem within the Kernel handles flash memory devices, including NAND flash. The rawnand driver is responsible for managing NAND flash devices that use the GPMI (General-Purpose Memory Interface) controller. This vulnerability in the rawnand GPMI driver can lead to a reference leak in the power management (PM) system, potentially causing resource exhaustion or other issues.
Vulnerability Detail
The vulnerability in the rawnand GPMI driver occurs when an error path is encountered during the execution of certain operations. In this error path, a reference to the power management (PM) system is not properly released, leading to a reference leak. This can result in resource exhaustion or other unexpected behavior. An attacker may be able to exploit this vulnerability to cause a denial-of-service condition or potentially execute arbitrary code with elevated privileges. It is important to note that the impact and attack plausibility of this vulnerability have not been proven.
How To Fix
No fixed version is published for this vulnerability.
The vulnerability has been fixed in the Linux Kernel version v5.4.181 by commit 4cd3281a910a5adf73b2a0a82241dd67844d0b25. To address this vulnerability, it is recommended to update the Kernel to version v5.4.181 or later. This can be done by obtaining the updated Kernel source code from the official Git repository (https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/) and compiling/installing the updated Kernel. It is important to follow the appropriate procedures for updating the Kernel in your specific environment.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
No specific workaround has been provided for this vulnerability.
Conclusion
The vulnerability in the rawnand GPMI driver of the Kernel can lead to a reference leak in the power management system, potentially causing resource exhaustion or other issues. It is recommended to update the Kernel to version v5.4.181 or later to address this vulnerability. Regularly applying security updates and following best practices for system security is crucial. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability can potentially lead to resource exhaustion or other unexpected behavior, which may result in a denial-of-service condition or the execution of arbitrary code with elevated privileges.
You can use Vulert's playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Vulert uses a manifest file like package-lock.json to monitor and alert in real-time for open-source vulnerabilities in the software.
There is no information available regarding exploitation of this vulnerability in the wild. However, it is always recommended to apply security updates and patches to mitigate potential risks.
The recommended mitigation is to update the Kernel to version v5.4.181 or later, which includes the fix for this vulnerability. It is important to follow best practices for system security, such as regularly applying updates and patches.
You can find more information about this vulnerability in the Cloud Security Alliance's GSD database (https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1000xxx/GSD-2022-1000356.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.