# jfs: fix array-index-out-of-bounds read in add_missing_indices

CVE record · `CVE-2025-38204`

- **Identifiers:** `CVE-2025-38204`
- **State:** Confirmed
- **Severity:** CVSS 7.8 High
- **Critical:** No
- **CNA:** Linux
- **Technologies:** [Linux kernel](https://agentprime.io/advisories/technology/linux-kernel.md)
- **Published:** 4 Jul 2025
- **Updated:** 30 Oct 2026
- **Reviewed by a person:** No

Published by the CVE Program (CNA: Linux) at 4 Jul 2025, 13:37 UTC. agentprime has not analysed this yet, so whether it affects any app is not known. This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it.

## Affected products, as the CNA wrote them

- Vendor: Linux. Product: Linux.
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 81af4b34fd72d390d7f237c6a545cc6d09707956` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before bfa4655d28f338e68d345aed80d19be7999bbce2` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 44618bee303bed151ef3a525ff79fbd7689593b5` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5730e2da0655336fed6aa3c25892e69e2ba5cb76` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c8733634978086b41255695d993cec3017a23a27` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2ec34dc7094b14149ce091c77aff43a45d255518` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c8399564a58fb6ea2ff21a6fd278417943cb51a5` (git)
  - affected: `1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 5dff41a86377563f7a2b968aae00d25b4ceb37c9` (git)
  - Other versions: unaffected
- Vendor: Linux. Product: Linux.
  - affected: `2.6.12`
  - unaffected: `before 2.6.12` (semver)
  - unaffected: `5.4.295 to 5.4.*, inclusive` (semver)
  - unaffected: `5.10.239 to 5.10.*, inclusive` (semver)
  - unaffected: `5.15.186 to 5.15.*, inclusive` (semver)
  - unaffected: `6.1.191 to 6.1.*, inclusive` (semver)
  - unaffected: `6.6.160 to 6.6.*, inclusive` (semver)
  - unaffected: `6.12.113 to 6.12.*, inclusive` (semver)
  - unaffected: `6.15.4 to 6.15.*, inclusive` (semver)
  - unaffected: `6.16 to *, inclusive` (original_commit_for_fix)
  - Other versions: affected

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The Linux kernel's JFS filesystem code has an out-of-bounds array read in add_missing_indices, where an s8 index can exceed its valid 0 to 127 range. The source gives few details on how an attacker would trigger it or what they could gain. Upgrade to a fixed kernel: 5.4.295, 5.10.239, 5.15.186, or 6.1.191 in the matching series, or a later stable release.

Written 13 Nov 2026.

## Not analysed yet

We haven’t published our own analysis of this CVE. If a person reviews it, this page will say what’s affected and what has to be true for it to matter.

## Severity and exploitation

- 7.8 High, CVSS 3.1: `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`, from CNA (Linux)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0024, the 15th percentile, on 20 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the CVE Program, published 4 Jul 2025. New records show when each source confirmed them.

## Sources

- [CVE List: CVE-2025-38204](https://www.cve.org/CVERecord?id=CVE-2025-38204)
- [NVD: CVE-2025-38204](https://nvd.nist.gov/vuln/detail/CVE-2025-38204)

### References from the CNA

- <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>

Facts on this page come from the CVE List as the CNA published them, with CVSS from the sources named above, CISA KEV and FIRST EPSS. Vendors, products and versions are shown as the CNA wrote them. We don’t reproduce the CVE’s description.

## Check whether this affects you

This CVE names a vendor and product rather than a package, so the lockfile check doesn’t match it. Compare the affected versions above with what you run.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), `get_advisory` returns this record and `search_advisories` finds related ones. Setup: <https://agentprime.io/mcp.md>
- As JSON: <https://api.agentprime.io/v1/advisories/CVE-2025-38204>
- Everything that needs attention now: <https://agentprime.io/advisories/critical.md>

---

The web page: <https://agentprime.io/advisories/CVE-2025-38204/>. Everything for agents: <https://agentprime.io/llms.txt>.
