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

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-125
- **Published:** 2025-07-04T13:37:24.606Z
- **Modified:** 2026-10-30T13:18:01.620Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 81af4b34fd72d390d7f237c6a545cc6d09707956; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bfa4655d28f338e68d345aed80d19be7999bbce2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 44618bee303bed151ef3a525ff79fbd7689593b5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5730e2da0655336fed6aa3c25892e69e2ba5cb76; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8733634978086b41255695d993cec3017a23a27; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2ec34dc7094b14149ce091c77aff43a45d255518; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8399564a58fb6ea2ff21a6fd278417943cb51a5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5dff41a86377563f7a2b968aae00d25b4ceb37c9
- Anyone running Linux 2.6.12

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

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 81af4b34fd72d390d7f237c6a545cc6d09707956; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bfa4655d28f338e68d345aed80d19be7999bbce2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 44618bee303bed151ef3a525ff79fbd7689593b5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5730e2da0655336fed6aa3c25892e69e2ba5cb76; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8733634978086b41255695d993cec3017a23a27; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2ec34dc7094b14149ce091c77aff43a45d255518; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8399564a58fb6ea2ff21a6fd278417943cb51a5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5dff41a86377563f7a2b968aae00d25b4ceb37c9 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- Upgrade Linux to 5dff41a86377563f7a2b968aae00d25b4ceb37c9 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38204.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 81af4b34fd72d390d7f237c6a545cc6d09707956; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < bfa4655d28f338e68d345aed80d19be7999bbce2; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 44618bee303bed151ef3a525ff79fbd7689593b5; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 81af4b34fd72d390d7f237c6a545cc6d09707956, Linux 44618bee303bed151ef3a525ff79fbd7689593b5, Linux 5730e2da0655336fed6aa3c25892e69e2ba5cb76, Linux 2ec34dc7094b14149ce091c77aff43a45d255518, Linux 5dff41a86377563f7a2b968aae00d25b4ceb37c9

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-38204 being exploited?

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

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

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 81af4b34fd72d390d7f237c6a545cc6d09707956; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< bfa4655d28f338e68d345aed80d19be7999bbce2; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 44618bee303bed151ef3a525ff79fbd7689593b5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5730e2da0655336fed6aa3c25892e69e2ba5cb76; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8733634978086b41255695d993cec3017a23a27; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2ec34dc7094b14149ce091c77aff43a45d255518; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c8399564a58fb6ea2ff21a6fd278417943cb51a5; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 5dff41a86377563f7a2b968aae00d25b4ceb37c9; Linux 2.6.12.

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

Yes. Fixed in Linux 81af4b34fd72d390d7f237c6a545cc6d09707956, Linux 44618bee303bed151ef3a525ff79fbd7689593b5, Linux 5730e2da0655336fed6aa3c25892e69e2ba5cb76, Linux 2ec34dc7094b14149ce091c77aff43a45d255518, Linux 5dff41a86377563f7a2b968aae00d25b4ceb37c9. Upgrade Linux to 5dff41a86377563f7a2b968aae00d25b4ceb37c9 or later.

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

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/81af4b34fd72d390d7f237c6a545cc6d09707956>
- patch: <https://git.kernel.org/stable/c/bfa4655d28f338e68d345aed80d19be7999bbce2>
- patch: <https://git.kernel.org/stable/c/44618bee303bed151ef3a525ff79fbd7689593b5>
- patch: <https://git.kernel.org/stable/c/c8399564a58fb6ea2ff21a6fd278417943cb51a5>
- patch: <https://git.kernel.org/stable/c/5dff41a86377563f7a2b968aae00d25b4ceb37c9>
- other: <https://git.kernel.org/stable/c/5730e2da0655336fed6aa3c25892e69e2ba5cb76>
- other: <https://git.kernel.org/stable/c/c8733634978086b41255695d993cec3017a23a27>
- other: <https://git.kernel.org/stable/c/2ec34dc7094b14149ce091c77aff43a45d255518>
- 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-38204>

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