jfs: fix array-index-out-of-bounds read in add_missing_indices
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.
02 / AFFECTED SOFTWARE
Affected packages
1587 explicit affected versions
03 / CONNECTIONS
Connected vulnerabilities
04 / EVIDENCE
Source records
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.
05 / REFERENCES
Further evidence
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
- https://git.kernel.org/stable/c/44618bee303bed151ef3a525ff79fbd7689593b5
- https://git.kernel.org/stable/c/5dff41a86377563f7a2b968aae00d25b4ceb37c9
- https://git.kernel.org/stable/c/81af4b34fd72d390d7f237c6a545cc6d09707956
- https://git.kernel.org/stable/c/bfa4655d28f338e68d345aed80d19be7999bbce2
- https://git.kernel.org/stable/c/c8399564a58fb6ea2ff21a6fd278417943cb51a5
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38204.json
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- https://nvd.nist.gov/vuln/detail/CVE-2025-38204