CVE-2025-38277
mtd: nand: ecc-mxic: Fix use of uninitialized variable ret
Reported by linux · Published July 10, 2025
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.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 48e6633a9fa2400b53a964358753769f291a7eb0, 48e6633a9fa2400b53a964358753769f291a7eb0, 48e6633a9fa2400b53a964358753769f291a7eb0 |
| Linux | Linux | 5.18, 0, 6.1.142 |
| linux | linux_kernel | 5.18, 5.18, 5.18 |
| Linux | Linux | 48e6633a9fa2400b53a964358753769f291a7eb0, 48e6633a9fa2400b53a964358753769f291a7eb0, 48e6633a9fa2400b53a964358753769f291a7eb0 |
Timeline
- Jul 9, 2025 CVE Published
- Jul 10, 2025 EPSS Score (30 in total, the first dated here)
- Oct 11, 2025 PoC Published (21 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (138 in total, the first dated here)
- Mar 29, 2026 Security Advisory (144 in total, the first dated here)
- May 11, 2026 CVE Updated
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38277
vulnetix vdb fixes CVE-2025-38277
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38277/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart