# CVE-2025-38697: jfs: upper bound check of tree index in dbAllocAG

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/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.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2025-09-04T15:32:49.848Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-129
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

jfs: upper bound check of tree index in dbAllocAG

When computing the tree index in dbAllocAG, we never check if we are
out of bounds realative to the size of the stree.
This could happen in a scenario where the filesystem metadata are
corrupted.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5bdb9553fb134fd52ec208a8b378120670f6e784; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a4f199203f79ca9cd7355799ccb26800174ff093; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 49ea46d9025aa1914b24ea957636cbe4367a7311; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 173cfd741ad7073640bfb7e2344c2a0ee005e769; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c8ca21a2836993d7cb816668458e05e598574e55; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2dd05f09cc323018136a7ecdb3d1007be9ede27f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 30e19a884c0b11f33821aacda7e72e914bec26ef; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before c214006856ff52a8ff17ed8da52d50601d54f9ce; 2.6.12 (not affected: before 2.6.12; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.149 up to 6.1.*; from 6.6.103 up to 6.6.*; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 2.6.12.1 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.149; from 6.2 before 6.6.103; from 6.7 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2; 2.6.12
- debian debian_linux: 11.0

## Every score

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

## References

- <https://git.kernel.org/stable/c/5bdb9553fb134fd52ec208a8b378120670f6e784> (patch)
- <https://git.kernel.org/stable/c/a4f199203f79ca9cd7355799ccb26800174ff093> (patch)
- <https://git.kernel.org/stable/c/1467a75819e41341cd5ebd16faa2af1ca3c8f4fe> (patch)
- <https://git.kernel.org/stable/c/49ea46d9025aa1914b24ea957636cbe4367a7311> (patch)
- <https://git.kernel.org/stable/c/173cfd741ad7073640bfb7e2344c2a0ee005e769> (patch)
- <https://git.kernel.org/stable/c/c8ca21a2836993d7cb816668458e05e598574e55> (patch)
- <https://git.kernel.org/stable/c/2dd05f09cc323018136a7ecdb3d1007be9ede27f> (patch)
- <https://git.kernel.org/stable/c/30e19a884c0b11f33821aacda7e72e914bec26ef> (patch)
- <https://git.kernel.org/stable/c/c214006856ff52a8ff17ed8da52d50601d54f9ce> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

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

---

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