{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38194","id":"CVE-2025-38194","title":"jffs2: check that raw node were preallocated before writing summary","description":"In the Linux kernel, the following vulnerability has been resolved:\n\njffs2: check that raw node were preallocated before writing summary\n\nSyzkaller detected a kernel bug in jffs2_link_node_ref, caused by fault\ninjection in jffs2_prealloc_raw_node_refs. jffs2_sum_write_sumnode doesn't\ncheck return value of jffs2_prealloc_raw_node_refs and simply lets any\nerror propagate into jffs2_sum_write_data, w","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\njffs2: check that raw node were preallocated before writing summary\n\nSyzkaller detected a kernel bug in jffs2_link_node_ref, caused by fault\ninjection in jffs2_prealloc_raw_node_refs. jffs2_sum_write_sumnode doesn't\ncheck return value of jffs2_prealloc_raw_node_refs and simply lets any\nerror propagate into jffs2_sum_write_data, which eventually calls\njffs2_link_node_ref in order to link the summary to an expectedly allocated\nnode.\n\nkernel BUG at fs/jffs2/nodelist.c:592!\ninvalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI\nCPU: 1 PID: 31277 Comm: syz-executor.7 Not tainted 6.1.128-syzkaller-00139-ge10f83ca10a1 #0\nHardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014\nRIP: 0010:jffs2_link_node_ref+0x570/0x690 fs/jffs2/nodelist.c:592\nCall Trace:\n <TASK>\n jffs2_sum_write_data fs/jffs2/summary.c:841 [inline]\n jffs2_sum_write_sumnode+0xd1a/0x1da0 fs/jffs2/summary.c:874\n jffs2_do_reserve_space+0xa18/0xd60 fs/jffs2/nodemgmt.c:388\n jffs2_reserve_space+0x55f/0xaa0 fs/jffs2/nodemgmt.c:197\n jffs2_write_inode_range+0x246/0xb50 fs/jffs2/write.c:362\n jffs2_write_end+0x726/0x15d0 fs/jffs2/file.c:301\n generic_perform_write+0x314/0x5d0 mm/filemap.c:3856\n __generic_file_write_iter+0x2ae/0x4d0 mm/filemap.c:3973\n generic_file_write_iter+0xe3/0x350 mm/filemap.c:4005\n call_write_iter include/linux/fs.h:2265 [inline]\n do_iter_readv_writev+0x20f/0x3c0 fs/read_write.c:735\n do_iter_write+0x186/0x710 fs/read_write.c:861\n vfs_iter_write+0x70/0xa0 fs/read_write.c:902\n iter_file_splice_write+0x73b/0xc90 fs/splice.c:685\n do_splice_from fs/splice.c:763 [inline]\n direct_splice_actor+0x10c/0x170 fs/splice.c:950\n splice_direct_to_actor+0x337/0xa10 fs/splice.c:896\n do_splice_direct+0x1a9/0x280 fs/splice.c:1002\n do_sendfile+0xb13/0x12c0 fs/read_write.c:1255\n __do_sys_sendfile64 fs/read_write.c:1323 [inline]\n __se_sys_sendfile64 fs/read_write.c:1309 [inline]\n __x64_sys_sendfile64+0x1cf/0x210 fs/read_write.c:1309\n do_syscall_x64 arch/x86/entry/common.c:51 [inline]\n do_syscall_64+0x35/0x80 arch/x86/entry/common.c:81\n entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nFix this issue by checking return value of jffs2_prealloc_raw_node_refs\nbefore calling jffs2_sum_write_data.\n\nFound by Linux Verification Center (linuxtesting.org) with Syzkaller.","published":"2025-07-04T13:37:17.922Z","updated":"2026-10-28T02:30:58.493399335Z","reserved":"2025-04-16T04:51:23.993Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"337f80f3d546e131c7aa90b61d8cde051ae858c7","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"8ce46dc5b10b0b6f67663202a4921b0e11ad7367","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"4adee34098a6ee86a54bf3ec885eab620c126a6b","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"c0edcdb4fc106d69a2d1a0ce4868193511c389f3","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"3f46644a5131a4793fc95c32a7d0a769745b06e7","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"da12ef7e19048dc5714032c2db587a215852b200","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"346cfb9d19ea7feb6fb57917b21c4797fb444dab","status":"affected","versionType":"git"},{"version":"2f785402f39b96a077b6e62bf26164bfb8e0c980","lessThan":"ec9e6f22bce433b260ea226de127ec68042849b0","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","lessThan":"2.6.18","status":"unaffected","versionType":"semver"},{"version":"5.4.295","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.239","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.186","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.142","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.95","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.35","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.15.4","lessThanOrEqual":"6.15.*","status":"unaffected","versionType":"semver"},{"version":"6.16","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/337f80f3d546e131c7aa90b61d8cde051ae858c7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8ce46dc5b10b0b6f67663202a4921b0e11ad7367","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4adee34098a6ee86a54bf3ec885eab620c126a6b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/c0edcdb4fc106d69a2d1a0ce4868193511c389f3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3f46644a5131a4793fc95c32a7d0a769745b06e7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/da12ef7e19048dc5714032c2db587a215852b200","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/346cfb9d19ea7feb6fb57917b21c4797fb444dab","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/ec9e6f22bce433b260ea226de127ec68042849b0","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38194.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38194","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00227,"epssPercentile":0.1359,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38194","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38194","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38194","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38194","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}