Vulnerability in Linux
CVE-2025-38277
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.002, 9.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Linux — versions 48e6633a9fa2400b53a964358753769f291a7eb0, 5.18, 0
- Linux Kernel
- Debian Linux — versions 11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (w4zu/Debian_security). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.kernel.org/stable/c/4d9d6e4be09472aa72953caca3dbefdc27846170 (Patch)
- git.kernel.org/stable/c/a0d9d9b5a4634e146ae41cb25667322e5c7d74d2 (Patch)
- git.kernel.org/stable/c/7a23cc510ecaabab4f6df7e9d910d16e279b72ad (Patch)
- git.kernel.org/stable/c/49482f4a39620f6afedcd3f6aa9e0d558b6a460b (Patch)
- git.kernel.org/stable/c/d95846350aac72303036a70c4cdc69ae314aa26d (Patch)
- lists.debian.org/debian-lts-announce/2025/10/msg00008.html (Mailing List, Third Party Advisory)