Look up another CVE · open CVE-2025-38204 in the interactive tracker
CVE-2025-38204
jfs: fix array-index-out-of-bounds read in add_missing_indices
Published 2025-07-04 (15 months ago) by the Linux kernel CNA. Subsystem fs/jfs. Debian urgency: not yet assigned.
What to do, per Debian release
Debian's own status for CVE-2025-38204 in every release this site tracks, and what each one means in practice. Every status below is the one the Debian Security Team publishes for this CVE. source
| Release | Status | Version | What this means |
|---|---|---|---|
| Debian 12bookworm | vulnerable | 6.1.190-1 | No fix published anywhere yet, neither in Debian nor upstream for the series bookworm tracks. Watch the Debian tracker page for this CVE. Advisories for bookworm have historically landed a median of 23 days after publication. |
| Debian 13trixie | fixedDSA-6568-1 · 2026-10-16 · text | 6.12.113-1 | Update the kernel and reboot. DSA-6568-1 shipped the fix on 2026-10-16, in 6.12.113-1. A running kernel keeps the old code until the machine restarts. |
| Debian 14forky | fixed | 6.16.3-1 | Update the kernel and reboot. Fixed in 6.16.3-1. A running kernel keeps the old code until the machine restarts. |
| Debian unstablesid | fixed | 6.16.3-1 | Update the kernel and reboot. Fixed in 6.16.3-1. A running kernel keeps the old code until the machine restarts. |
The vulnerability
What the bug is
stbl is s8 but it must contain offsets into slot which can go from 0 to 127. Added a bound check for that error and return -EIO if the check fails. Also make jfs_readdir return with error if add_missing_indices returns with an error.
Where it lives
The fix touches these files. If the subsystem is one you do not use, the practical exposure is lower, though the package is still the vulnerable one.
fs/jfs/jfs_dtree.c
- What this is
- JFS FILESYSTEMMAINTAINERS section matched on fs/jfs/ · jfs-discussion@lists.sourceforge.net · Odd Fixes
- Kernel module
- jfs
Check it on the machine
grep -w CONFIG_JFS_FS /boot/config-$(uname -r)Reads the booted kernel's own configuration, on the machine and nowhere else. =y is built in, =m is a module, and an is not set line means the code is not there.
lsmod | grep -w jfsPrints a line if that module is loaded right now, and nothing if it is not. One that is not loaded can still be loaded later by anything that needs it.
Show whether Debian builds this, per release
Debian builds this, but not on every flavour. At least one release below builds the code on some of its kernel flavours and not on others, so the answer depends on the architecture and flavour installed.
- bookworm, trixie, forky, sidMnot built on amd64/cloud-amd64, arm64/cloud-arm64
- M
- a module where it is built at all; some flavours do not build it
- Build switch
- CONFIG_JFS_FS
From the configuration Debian publishes for every kernel flavour it builds. It covers only the architectures Debian ships a linux-config package for, and nothing about a kernel you built yourself. Debian's own status above stays authoritative about the source package.MAINTAINERS kbuild Makefiles Debian linux-config packages
Signals
- Published
- 2025-07-04 (15 months ago)source
- CVSS
- 7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:Hsource recompute it - Attack vector
- local (AV:L)source
- EPSS
- 0.19%, higher than 8.1% of all CVEssource
- CISA KEV
- not listedthe KEV catalogue
- Debian urgency
- not yet assignedsource
- Subsystem
- fs/jfs
Upstream fixes
The versions the CNA records as introducing and fixing this, and the commit for each. source
| Introduced | Fixed in | Commit |
|---|---|---|
| 2.6.12 | 5.4.295 | 81af4b34fd72 |
| 2.6.12 | 5.10.239 | bfa4655d28f3 |
| 2.6.12 | 5.15.186 | 44618bee303b |
| 2.6.12 | 6.12.113 | 2ec34dc7094b |
| 2.6.12 | 6.15.4 | c8399564a58f |
| 2.6.12 | 6.16 | 5dff41a86377 |
Debian advisories
| Advisory | Date | Shipped to | Debian |
|---|---|---|---|
| DSA-6568-1 | 2026-10-16 | trixie 6.12.113-1 | tracker |
| DLA-4327-1 | 2025-10-13 | bullseye 5.10.244-1 | tracker |
Why the CNA scored it this way
Quoted from the kernel CNA's own scoring file, word for word. A highlighted metric carries the most severe value CVSS v3.1 defines for it, which is what pushes the score up. source
- AV:LAttack vector, local
- The attack requires a crafted JFS image to be presented to and mounted on the local system (loop device, or removable media auto-mounted by udisks2/autofs on a kiosk or shared workstation), after which the trigger is an ordinary local getdents64() syscall on a directory. There is no network or remote-peer input path into jfs_readdir()/add_missing_indices().
- AC:LAttack complexity, low
- Every controlling value — the negative stbl[] entries, the starting slot in the dir_table entry that makes readdir skip them, the out-of-range d->index that sets fix_page, and next_index — is read verbatim from the attacker's image, so the out-of-bounds access is fully deterministic with no race, timing, or memory-layout condition outside the attacker's control.
- PR:NPrivileges required, none
- The attacker only has to author the filesystem image and needs no account or privilege on the target; once mounted, the vulnerable path is reached by an unprivileged readdir with no capable() or permission check anywhere between the syscall and add_missing_indices().
- UI:RUser interaction, required
- A user or an automounter on the victim system must mount the malicious JFS image read-write before the corrupted dtree page is ever ingested; on a desktop the file manager then issues the getdents that trips the bug without further action.
- S:UScope, unchanged
- The out-of-bounds read, the out-of-bounds write, and the corrupted journal records are all confined to the kernel's own security authority on the affected host; no VM, IOMMU, or sandbox boundary is crossed.
- C:HConfidentiality impact, high
- The negative index reads kernel memory up to 4064 bytes before the metapage folio, and because lv->offset is u8 the same value makes lmWriteRecord() memcpy 32 bytes from up to 4064 bytes past the metapage into the journal, persisting kernel heap contents onto storage the attacker supplied and can read back — far beyond a bounded few-byte read.
- I:HIntegrity impact, high
- When the out-of-bounds-read d->index fails the (2 <= index < next_index) test — which arbitrary adjacent heap data almost always does — the code performs a 4-byte out-of-bounds write of add_index()'s return value at an attacker-chosen 32-byte-aligned offset among 128 possible slots before the metapage, giving a groomable heap corruption primitive in addition to the bogus linelock that corrupts the on-disk journal.
- A:HAvailability impact, high
- The wild read and write reach adjacent page-cache folios and other kernel allocations, producing a KASAN report/oops or corrupting live kernel structures, and the malformed journal line-vector writes garbage into the log; the attacker can repeat the readdir arbitrarily, so a kernel panic is readily achievable.