Vulnerability in Kernel: mtd: rawnand: gpmi: don't leak PM reference in error path

Kernel Updated 02 Oct 2025

Summary

27/02/2022
N/A
No i
Unrated
Not published

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 ↓

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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

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 →

Share this vulnerability

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.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

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 →

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

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.