We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-38277

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



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.

Reserved 2025-04-16 | Published 2025-07-10 | Updated 2025-07-10 | Assigner Linux

Product status

Default status
unaffected

48e6633a9fa2400b53a964358753769f291a7eb0 before 4d9d6e4be09472aa72953caca3dbefdc27846170
affected

48e6633a9fa2400b53a964358753769f291a7eb0 before a0d9d9b5a4634e146ae41cb25667322e5c7d74d2
affected

48e6633a9fa2400b53a964358753769f291a7eb0 before 7a23cc510ecaabab4f6df7e9d910d16e279b72ad
affected

48e6633a9fa2400b53a964358753769f291a7eb0 before 49482f4a39620f6afedcd3f6aa9e0d558b6a460b
affected

48e6633a9fa2400b53a964358753769f291a7eb0 before d95846350aac72303036a70c4cdc69ae314aa26d
affected

Default status
affected

5.18
affected

Any version before 5.18
unaffected

6.1.142
unaffected

6.6.94
unaffected

6.12.34
unaffected

6.15.3
unaffected

6.16-rc1
unaffected

References

git.kernel.org/...c/4d9d6e4be09472aa72953caca3dbefdc27846170

git.kernel.org/...c/a0d9d9b5a4634e146ae41cb25667322e5c7d74d2

git.kernel.org/...c/7a23cc510ecaabab4f6df7e9d910d16e279b72ad

git.kernel.org/...c/49482f4a39620f6afedcd3f6aa9e0d558b6a460b

git.kernel.org/...c/d95846350aac72303036a70c4cdc69ae314aa26d

cve.org (CVE-2025-38277)

nvd.nist.gov (CVE-2025-38277)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-38277

Support options

Helpdesk Chat, Email, Knowledgebase