Vulnerability in atmel_nand_controller_init of Kernel
Summary
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 ↓
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 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 →
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.