# CVE-2025-38194: jffs2: check that raw node were preallocated before writing summary

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **Published:** 2025-07-04T13:37:17.922Z
- **Modified:** 2026-06-17T09:16:21.800Z

## Who should check

- Anyone running Linux \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 337f80f3d546e131c7aa90b61d8cde051ae858c7; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 8ce46dc5b10b0b6f67663202a4921b0e11ad7367; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 4adee34098a6ee86a54bf3ec885eab620c126a6b; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< c0edcdb4fc106d69a2d1a0ce4868193511c389f3; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 3f46644a5131a4793fc95c32a7d0a769745b06e7; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< da12ef7e19048dc5714032c2db587a215852b200; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 346cfb9d19ea7feb6fb57917b21c4797fb444dab; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< ec9e6f22bce433b260ea226de127ec68042849b0
- Anyone running Linux 2.6.18

## 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:
 \<TASK\>
 jffs2\_sum\_write\_data fs/jffs2/summary.c:841 \[inline\]
 jffs2\_sum\_write\_sumnode+0xd1a/0x1da0 fs/jffs2/summary.c:874
 jffs2\_do\_reserve\_space+0xa18/0xd60 fs/jffs2/nodemgmt.c:388
 jffs2\_reserve\_space+0x55f/0xaa0 fs/jffs2/nodemgmt.c:197
 jffs2\_write\_inode\_range+0x246/0xb50 fs/jffs2/write.c:362
 jffs2\_write\_end+0x726/0x15d0 fs/jffs2/file.c:301
 generic\_perform\_write+0x314/0x5d0 mm/filemap.c:3856
 \_\_generic\_file\_write\_iter+0x2ae/0x4d0 mm/filemap.c:3973
 generic\_file\_write\_iter+0xe3/0x350 mm/filemap.c:4005
 call\_write\_iter include/linux/fs.h:2265 \[inline\]
 do\_iter\_readv\_writev+0x20f/0x3c0 fs/read\_write.c:735
 do\_iter\_write+0x186/0x710 fs/read\_write.c:861
 vfs\_iter\_write+0x70/0xa0 fs/read\_write.c:902
 iter\_file\_splice\_write+0x73b/0xc90 fs/splice.c:685
 do\_splice\_from fs/splice.c:763 \[inline\]
 direct\_splice\_actor+0x10c/0x170 fs/splice.c:950
 splice\_direct\_to\_actor+0x337/0xa10 fs/splice.c:896
 do\_splice\_direct+0x1a9/0x280 fs/splice.c:1002
 do\_sendfile+0xb13/0x12c0 fs/read\_write.c:1255
 \_\_do\_sys\_sendfile64 fs/read\_write.c:1323 \[inline\]
 \_\_se\_sys\_sendfile64 fs/read\_write.c:1309 \[inline\]
 \_\_x64\_sys\_sendfile64+0x1cf/0x210 fs/read\_write.c:1309
 do\_syscall\_x64 arch/x86/entry/common.c:51 \[inline\]
 do\_syscall\_64+0x35/0x80 arch/x86/entry/common.c:81
 entry\_SYSCALL\_64\_after\_hwframe+0x6e/0xd8

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.

## Affected and fixed versions

- Linux: \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 337f80f3d546e131c7aa90b61d8cde051ae858c7; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 8ce46dc5b10b0b6f67663202a4921b0e11ad7367; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 4adee34098a6ee86a54bf3ec885eab620c126a6b; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< c0edcdb4fc106d69a2d1a0ce4868193511c389f3; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 3f46644a5131a4793fc95c32a7d0a769745b06e7; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< da12ef7e19048dc5714032c2db587a215852b200; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 346cfb9d19ea7feb6fb57917b21c4797fb444dab; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< ec9e6f22bce433b260ea226de127ec68042849b0 (cvelist)
- Linux: 2.6.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38194. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38194.md
Affected: Linux >= 2f785402f39b96a077b6e62bf26164bfb8e0c980, < 337f80f3d546e131c7aa90b61d8cde051ae858c7; >= 2f785402f39b96a077b6e62bf26164bfb8e0c980, < 8ce46dc5b10b0b6f67663202a4921b0e11ad7367; >= 2f785402f39b96a077b6e62bf26164bfb8e0c980, < 4adee34098a6ee86a54bf3ec885eab620c126a6b; >= 2f785402f39b96a077b6e62…
Fixed in: Linux 337f80f3d546e131c7aa90b61d8cde051ae858c7, Linux 8ce46dc5b10b0b6f67663202a4921b0e11ad7367, Linux 4adee34098a6ee86a54bf3ec885eab620c126a6b, Linux 3f46644a5131a4793fc95c32a7d0a769745b06e7, Linux 346cfb9d19ea7feb6fb57917b21c4797fb444dab

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38194 being exploited?

There is no confirmed exploitation: CVE-2025-38194 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38194?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38194?

Linux \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 337f80f3d546e131c7aa90b61d8cde051ae858c7; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 8ce46dc5b10b0b6f67663202a4921b0e11ad7367; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 4adee34098a6ee86a54bf3ec885eab620c126a6b; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< c0edcdb4fc106d69a2d1a0ce4868193511c389f3; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 3f46644a5131a4793fc95c32a7d0a769745b06e7; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< da12ef7e19048dc5714032c2db587a215852b200; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< 346cfb9d19ea7feb6fb57917b21c4797fb444dab; \>= 2f785402f39b96a077b6e62bf26164bfb8e0c980, \< ec9e6f22bce433b260ea226de127ec68042849b0; Linux 2.6.18.

### Is there a fix for CVE-2025-38194?

Yes. Fixed in Linux 337f80f3d546e131c7aa90b61d8cde051ae858c7, Linux 8ce46dc5b10b0b6f67663202a4921b0e11ad7367, Linux 4adee34098a6ee86a54bf3ec885eab620c126a6b, Linux 3f46644a5131a4793fc95c32a7d0a769745b06e7, Linux 346cfb9d19ea7feb6fb57917b21c4797fb444dab. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38194?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/337f80f3d546e131c7aa90b61d8cde051ae858c7>
- patch: <https://git.kernel.org/stable/c/8ce46dc5b10b0b6f67663202a4921b0e11ad7367>
- patch: <https://git.kernel.org/stable/c/4adee34098a6ee86a54bf3ec885eab620c126a6b>
- patch: <https://git.kernel.org/stable/c/c0edcdb4fc106d69a2d1a0ce4868193511c389f3>
- patch: <https://git.kernel.org/stable/c/3f46644a5131a4793fc95c32a7d0a769745b06e7>
- patch: <https://git.kernel.org/stable/c/da12ef7e19048dc5714032c2db587a215852b200>
- patch: <https://git.kernel.org/stable/c/346cfb9d19ea7feb6fb57917b21c4797fb444dab>
- patch: <https://git.kernel.org/stable/c/ec9e6f22bce433b260ea226de127ec68042849b0>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38194>

HTML: <https://flawdb.com/CVE-2025-38194> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38194>
