Use of Unmanaged Device Resources in mtd: rawnand: denali
Summary
GSD-2022-1003641: mtd: rawnand: denali: Use managed device resources. Affects Kernel versions >= 93db446a424cee9387b532995e6b516667079555, < 3c68daf4a368cd9e63ae5a2145c9e4a6f838c166. 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 mtd (Memory Technology Devices) subsystem in the Linux Kernel provides an abstraction layer for accessing various flash memory devices. One of the supported devices is the rawnand denali driver, which is responsible for managing NAND flash memory devices using the Denali controller. This driver allows reading from and writing to NAND flash memory chips.
The vulnerability identified in the rawnand denali driver involves the use of unmanaged device resources. This means that the driver does not properly handle the allocation and deallocation of resources, potentially leading to resource leaks or use-after-free vulnerabilities. These vulnerabilities can be exploited by an attacker to gain unauthorized access to sensitive information or execute arbitrary code on the affected system.
Vulnerability Detail
The vulnerability arises from the fact that the rawnand denali driver does not use managed device resources. Managed device resources are a mechanism provided by the Linux Kernel to ensure proper resource allocation and deallocation. By not utilizing managed device resources, the driver becomes susceptible to resource leaks and use-after-free vulnerabilities.
An attacker who can interact with the vulnerable driver may be able to trigger these vulnerabilities, potentially leading to a variety of attacks, including privilege escalation, information disclosure, or remote code execution.
The vulnerability was introduced in version v4.17 of the Linux Kernel by commit 93db446a424cee9387b532995e6b516667079555. It has been fixed in version v5.10.121 by commit 3c68daf4a368cd9e63ae5a2145c9e4a6f838c166.
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 →
Conclusion
The vulnerability in the rawnand denali driver of the Linux Kernel allows for the exploitation of unmanaged device resources, potentially leading to resource leaks and use-after-free vulnerabilities. To mitigate this risk, it is crucial to update the Linux Kernel to version v5.10.121 or later. This update includes the necessary fix commit (3c68daf4a368cd9e63ae5a2145c9e4a6f838c166) that addresses the issue. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for Kernel →
FAQ
The vulnerability allows an attacker to exploit resource leaks and use-after-free vulnerabilities in the rawnand denali driver. This can lead to various attacks, including privilege escalation, information disclosure, or remote code execution.
You can check if your system is affected by this vulnerability by examining the version of the Linux Kernel installed. If your system is running a version prior to v5.10.121, it is likely vulnerable. Additionally, you can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability.
At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is important to apply the necessary updates to mitigate the risk.
There is no known workaround for this vulnerability. It is recommended to update the Linux Kernel to the fixed version (v5.10.121 or later).
You can find more information about this vulnerability in the GSD database entry: https://github.com/cloudsecurityalliance/gsd-database/blob/main/2022/1003xxx/GSD-2022-1003641.json
Related vulnerabilities
Recent vulnerabilities recorded for Kernel.