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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:24.606Z
- Modified: 2026-10-30T13:18:01.620Z
- Weaknesses: CWE-125
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 81af4b34fd72d390d7f237c6a545cc6d09707956; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before bfa4655d28f338e68d345aed80d19be7999bbce2; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 44618bee303bed151ef3a525ff79fbd7689593b5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5730e2da0655336fed6aa3c25892e69e2ba5cb76; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c8733634978086b41255695d993cec3017a23a27; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2ec34dc7094b14149ce091c77aff43a45d255518; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c8399564a58fb6ea2ff21a6fd278417943cb51a5; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5dff41a86377563f7a2b968aae00d25b4ceb37c9; 2.6.12 (not affected: before 2.6.12; from 5.4.295 up to 5.4.*; from 5.10.239 up to 5.10.*; from 5.15.186 up to 5.15.*; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.113 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: before 5.4.295; from 5.5 before 5.10.239; from 5.11 before 5.15.186; from 5.16 before 6.15.4
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <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/5730e2da0655336fed6aa3c25892e69e2ba5cb76>
- <https://git.kernel.org/stable/c/c8733634978086b41255695d993cec3017a23a27>
- <https://git.kernel.org/stable/c/2ec34dc7094b14149ce091c77aff43a45d255518>
- <https://git.kernel.org/stable/c/c8399564a58fb6ea2ff21a6fd278417943cb51a5> (patch)
- <https://git.kernel.org/stable/c/5dff41a86377563f7a2b968aae00d25b4ceb37c9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-38204](https://www.cve.org/CVERecord?id=CVE-2025-38204), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2025-38204](https://nvd.nist.gov/vuln/detail/CVE-2025-38204), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2025-38204 · Whole record: https://cve.day/CVE-2025-38204.json · Rebuilt by cve.day 2026-11-25T22:59:00.641Z
