Vulnerability in Kernel: mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init

Kernel Updated 02 Oct 2025

Summary

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

GSD-2022-1001211: mtd: rawnand: atmel: fix refcount issue in atmel_nand_controller_init. Affects Kernel versions >= f88fc122cc34c2545dec9562eaab121494e401ef, < f1694169f3674cdf7553aed06864254635679878. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Kernel is a critical component of the Linux operating system that manages communication between hardware and software. It provides essential functionalities and services to ensure the proper functioning of the system. The vulnerability in question affects the mtd (Memory Technology Devices) subsystem, specifically the rawnand driver for Atmel NAND controllers. This driver is responsible for managing NAND flash memory devices manufactured by Atmel. The vulnerability arises from a refcount issue in the atmel_nand_controller_init function, which can lead to potential security risks.

Vulnerability Detail

The vulnerability in the atmel_nand_controller_init function of the rawnand driver for Atmel NAND controllers allows for a refcount issue. This issue can be exploited by an attacker to potentially gain unauthorized access or execute arbitrary code on the affected system. The refcount issue arises from improper handling of reference counts, which can result in memory corruption or use-after-free vulnerabilities. Successful exploitation of this vulnerability could lead to system crashes, privilege escalation, or the execution of malicious code.

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 disable the affected driver by removing the corresponding module or disabling the relevant kernel configuration option. However, this workaround may result in the loss of functionality related to Atmel NAND controllers. It is recommended to apply the official fix by updating the Kernel as soon as possible.

Conclusion

The vulnerability in the Kernel's rawnand driver for Atmel NAND controllers can lead to serious security risks, including unauthorized access and code execution. It is essential to update the Kernel to version v5.17.2 or later to address the refcount issue in the atmel_nand_controller_init function. Users can also utilize the Vulert Playground (https://vulert.com/scanner) to check if their system is affected and receive real-time monitoring and alerts for open-source vulnerabilities. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for Kernel →

Share this vulnerability

FAQ

The vulnerability can potentially allow an attacker to gain unauthorized access, execute arbitrary code, or cause system crashes. It poses a significant security risk to systems utilizing Atmel NAND controllers.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your system is affected by this vulnerability. Simply upload your package-lock.json file to the playground, and it will provide real-time monitoring and alerts for open-source vulnerabilities, including this one.

Yes, a workaround involves disabling the affected driver by removing the module or disabling the relevant kernel configuration option. However, it is recommended to apply the official fix by updating the Kernel to ensure the security of the system.

The updated Kernel can be obtained from the official Linux Kernel repository at https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/. Make sure to choose the appropriate version for your system configuration.

At the time of this report, no known exploits for this vulnerability have been disclosed. However, it is crucial to apply the fix promptly to mitigate any potential risks.

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