CVE-2025-38194 Information
Description
In the Linux kernel the following vulnerability has been resolved:
jffs2: check that raw node were preallocated before writing summary
Syzkaller detected a kernel bug in jffs2_link_node_ref caused by fault injection in jffs2_prealloc_raw_node_refs. jffs2_sum_write_sumnode doesn’t check return value of jffs2_prealloc_raw_node_refs and simply lets any error propagate into jffs2_sum_write_data which eventually calls jffs2_link_node_ref in order to link the summary to an expectedly allocated node.
kernel BUG at fs/jffs2/nodelist.c:592!
invalid opcode: 0000 [1] PREEMPT SMP KASAN NOPTI
CPU: 1 PID: 31277 Comm: syz-executor.7 Not tainted 6.1.128-syzkaller-00139-ge10f83ca10a1 0
Hardware name: QEMU Standard PC (i440FX + PIIX 1996) BIOS 1.12.0-1 04/01/2014
RIP: 0010:jffs2_link_node_ref+0x570/0x690 fs/jffs2/nodelist.c:592
Call Trace:
Fix this issue by checking return value of jffs2_prealloc_raw_node_refs before calling jffs2_sum_write_data.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Reference
https://git.kernel.org/stable/c/337f80f3d546e131c7aa90b61d8cde051ae858c7 https://git.kernel.org/stable/c/346cfb9d19ea7feb6fb57917b21c4797fb444dab https://git.kernel.org/stable/c/3f46644a5131a4793fc95c32a7d0a769745b06e7 https://git.kernel.org/stable/c/4adee34098a6ee86a54bf3ec885eab620c126a6b https://git.kernel.org/stable/c/8ce46dc5b10b0b6f67663202a4921b0e11ad7367 https://git.kernel.org/stable/c/c0edcdb4fc106d69a2d1a0ce4868193511c389f3 https://git.kernel.org/stable/c/da12ef7e19048dc5714032c2db587a215852b200 https://git.kernel.org/stable/c/ec9e6f22bce433b260ea226de127ec68042849b0
Related CNNVD
CNNVD-202507-442 (Published: 2025-07-04)
Share on: