cbcvebase.
CVE-2025-38277
published 2025-07-10

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…

medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
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

28 ranges· showing 25
VendorProductVersion rangeFixed in
debiandebian_linux
debianlinux< linux 6.1.147-1 (bookworm)linux 6.1.147-1 (bookworm)
debianlinux-6.1< linux 6.1.147-1 (bookworm)linux 6.1.147-1 (bookworm)
linuxlinux
linuxlinux>= 48e6633a9fa2400b53a964358753769f291a7eb0 < 4d9d6e4be09472aa72953caca3dbefdc278461704d9d6e4be09472aa72953caca3dbefdc27846170
linuxlinux>= 48e6633a9fa2400b53a964358753769f291a7eb0 < a0d9d9b5a4634e146ae41cb25667322e5c7d74d2a0d9d9b5a4634e146ae41cb25667322e5c7d74d2
linuxlinux>= 48e6633a9fa2400b53a964358753769f291a7eb0 < 7a23cc510ecaabab4f6df7e9d910d16e279b72ad7a23cc510ecaabab4f6df7e9d910d16e279b72ad
linuxlinux>= 48e6633a9fa2400b53a964358753769f291a7eb0 < 49482f4a39620f6afedcd3f6aa9e0d558b6a460b49482f4a39620f6afedcd3f6aa9e0d558b6a460b
linuxlinux>= 48e6633a9fa2400b53a964358753769f291a7eb0 < d95846350aac72303036a70c4cdc69ae314aa26dd95846350aac72303036a70c4cdc69ae314aa26d
linuxlinux_kernel>= 0 < 6.1.147-16.1.147-1
linuxlinux_kernel>= 0 < 6.12.35-16.12.35-1
linuxlinux_kernel>= 0 < 6.12.35-16.12.35-1
linuxlinux_kernel>= 0 < 6.8.0-100.1006.8.0-100.100
linuxlinux_kernel>= 5.18 < 6.1.1426.1.142
linuxlinux_kernel>= 6.13 < 6.15.36.15.3
linuxlinux_kernel>= 6.2 < 6.6.946.6.94
linuxlinux_kernel>= 6.7 < 6.12.346.12.34
msrcazl3_kernel_6.6.92.2-2_on_azure_linux_3.0
msrcazl3_kernel_6.6.96.1-1_on_azure_linux_3.0
ubuntulinux-aws
ubuntulinux-aws-6.8
ubuntulinux-gkeop
ubuntulinux-nvidia
ubuntulinux-nvidia-6.8
ubuntulinux-oracle

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM