Vulnerability in atmel_nand_controller_init of Kernel

Kernel Updated 02 Oct 2025

Summary

24/04/2022
N/A
No i
Unrated
Not published

GSD-2022-1001839: mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init. Affects Kernel versions >= f88fc122cc34c2545dec9562eaab121494e401ef, < fe0e2ce5c87e9c0b9485ff566362030aa55972cf. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The Kernel is a crucial component of the Linux operating system that provides core functionalities and acts as an interface between hardware and software. It manages system resources, facilitates communication between different software components, and ensures the overall stability and security of the system. The atmel_nand_controller_init function is a part of the Kernel's mtd (Memory Technology Devices) subsystem and is responsible for initializing the NAND flash controller on Atmel-based systems. NAND flash memory is commonly used in embedded systems for data storage. This vulnerability in the atmel_nand_controller_init function can potentially lead to security issues.

Vulnerability Detail

The vulnerability in the atmel_nand_controller_init function arises from a refcount issue. This issue can be exploited by an attacker to manipulate the reference count of the NAND flash controller, leading to potential memory corruption or other security vulnerabilities. The exact impact and attack vectors have not been proven yet, but it is crucial to address this vulnerability to ensure the integrity and security of the system. The vulnerability was introduced in version v4.12 of the Linux Kernel and has been fixed in version v5.15.33.

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 →

Workaround

As a workaround, users can apply the patch manually to the affected version of the Linux Kernel. Here is an example of the patch:

--- a/drivers/mtd/nand/raw/atmel_nand_controller.c
+++ b/drivers/mtd/nand/raw/atmel_nand_controller.c
@@ -123,7 +123,7 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc)
 		return ret;
 
 		/*
-		 * The controller is now ready to be used.
+		 * The controller is now ready to be used. Increase refcount.
 		 */
 		nc->refcount++;
 

Conclusion

In conclusion, the atmel_nand_controller_init function in the Kernel's mtd subsystem has a refcount issue that can potentially lead to security vulnerabilities. It is recommended to update the Linux Kernel to version v5.15.33 or later to fix this vulnerability. Users can also apply the provided patch as a workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The exact impact of this vulnerability is not yet proven, but it can potentially lead to memory corruption or other security vulnerabilities. It is crucial to address this vulnerability to ensure the integrity and security of the system.

You can use tools like Vulert (https://vulert.com) 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.

Yes, a workaround is available. Users can manually apply the provided patch to the affected version of the Linux Kernel. Please refer to the 'workaround' section for more details.

Yes, this vulnerability has been fixed in version v5.15.33 of the Linux Kernel. It is recommended to update the Kernel to this version or later to ensure the vulnerability is mitigated.

You can find more information about this vulnerability in the GSD-2022-1001839 entry of the GSD database maintained by the Cloud Security Alliance. The link to the specific entry is provided in the 'affected' section of the vulnerability details.

Related vulnerabilities

Recent vulnerabilities recorded for Kernel.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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