CVE-2025-38277 Details
Description
In the Linux kernel, the following vulnerability has been resolved: mtd: nand: ecc-mxic: Fix use of uninitialized variable ret If ctx->steps is zero, the loop processing ECC steps is skipped, and the variable ret remains uninitialized. It is later checked and returned, which leads to undefined behavior and may cause unpredictable results in user space or kernel crashes. This scenario can be triggered in edge cases such as misconfigured geometry, ECC engine misuse, or if ctx->steps is not validated after initialization. Initialize ret to zero before the loop to ensure correct and safe behavior regardless of the ctx->steps value. Found by Linux Verification Center (linuxtesting.org) with SVACE.
A vulnerability in the Linux kernel's NAND ECC processing can lead to undefined behavior and potential kernel crashes. This issue arises from the use of an uninitialized variable, 'ret', in the ECC processing loop. If the context's 'steps' value is zero, the loop is skipped, leaving 'ret' uninitialized. The vulnerability can be triggered by misconfigured geometry, improper use of the ECC engine, or failure to validate 'ctx->steps' after initialization. The uninitialized variable is later checked and returned, causing unpredictable results in user space or a kernel crash.
The vulnerability has been addressed by initializing the 'ret' variable to zero before the ECC processing loop, ensuring correct and safe behavior regardless of the 'ctx->steps' value.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/49482f4a39620f6afedcd3f6aa9e0d558b6a460b | kernel.org | Patch |
| https://git.kernel.org/stable/c/4d9d6e4be09472aa72953caca3dbefdc27846170 | kernel.org | Patch |
| https://git.kernel.org/stable/c/7a23cc510ecaabab4f6df7e9d910d16e279b72ad | kernel.org | Patch |
| https://git.kernel.org/stable/c/a0d9d9b5a4634e146ae41cb25667322e5c7d74d2 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d95846350aac72303036a70c4cdc69ae314aa26d | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-908 | Use of Uninitialized Resource | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.18, < 6.1.142 >= 6.2, < 6.6.94 >= 6.7, < 6.12.34 >= 6.13, < 6.15.3 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 18, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 10, 2025 | New CVE Received | kernel.org |