Skip to main content
Network Thinking Solutions Logo

CVE-2025-38277

Linux kernel: mtd: nand: ecc-mxic: Fix use of uninitialized variable ret

All CVEs
CVE-2025-38277Published 7/10/2025

Linux kernel: mtd: nand: ecc-mxic: Fix use of uninitialized variable ret

Vendor advisory
CVSS5.5Medium

Overview

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
7/10/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.18, < 6.1.142

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.94

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.12.34

Verify advisory

Source
linux kernel
linux
≥ 6.13, < 6.15.3

Verify advisory

Source
debian linux
debian
11.0

Verify advisory

Source
Linux
Linux
≥ 48e6633a9fa2400b53a964358753769f291a7eb0, < 4d9d6e4be09472aa72953caca3dbefdc27846170

Verify advisory

Source
Linux
Linux
≥ 48e6633a9fa2400b53a964358753769f291a7eb0, < a0d9d9b5a4634e146ae41cb25667322e5c7d74d2

Verify advisory

Source
Linux
Linux
≥ 48e6633a9fa2400b53a964358753769f291a7eb0, < 7a23cc510ecaabab4f6df7e9d910d16e279b72ad

Verify advisory

Source
Linux
Linux
≥ 48e6633a9fa2400b53a964358753769f291a7eb0, < 49482f4a39620f6afedcd3f6aa9e0d558b6a460b

Verify advisory

Source
Linux
Linux
≥ 48e6633a9fa2400b53a964358753769f291a7eb0, < d95846350aac72303036a70c4cdc69ae314aa26d

Verify advisory

Source
Linux
Linux
5.18

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.