Use of Unmanaged Device Resources in mtd: rawnand: denali

Kernel Updated 02 Oct 2025

Summary

28/06/2022
N/A
No i
Unrated
Not published

GSD-2022-1003641: mtd: rawnand: denali: Use managed device resources. Affects Kernel versions >= 93db446a424cee9387b532995e6b516667079555, < 3c68daf4a368cd9e63ae5a2145c9e4a6f838c166. No fix is published. How to fix ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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).

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback