CVE-2025-38697
jfs: upper bound check of tree index in dbAllocAG
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5bdb9553fb134fd52ec208a8b378120670f6e784; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4f199203f79ca9cd7355799ccb26800174ff093; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 49ea46d9025aa1914b24ea957636cbe4367a7311; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 173cfd741ad7073640bfb7e2344c2a0ee005e769; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c8ca21a2836993d7cb816668458e05e598574e55; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2dd05f09cc323018136a7ecdb3d1007be9ede27f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 30e19a884c0b11f33821aacda7e72e914bec26ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c214006856ff52a8ff17ed8da52d50601d54f9ce
- Anyone running Linux 2.6.12
Vulnerability facts
- Affected
- Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5bdb9553fb134fd52ec208a8b378120670f6e784; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4f199203f79ca9cd7355799ccb26800174ff093; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 49ea46d9025aa1914b24ea957636cbe4367a7311; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 173cfd741ad7073640bfb7e2344c2a0ee005e769; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c8ca21a2836993d7cb816668458e05e598574e55; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2dd05f09cc323018136a7ecdb3d1007be9ede27f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 30e19a884c0b11f33821aacda7e72e914bec26ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c214006856ff52a8ff17ed8da52d50601d54f9ce; Linux 2.6.12
- Fixed in
- Linux 5bdb9553fb134fd52ec208a8b378120670f6e784, Linux 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe, Linux 49ea46d9025aa1914b24ea957636cbe4367a7311, Linux 173cfd741ad7073640bfb7e2344c2a0ee005e769, Linux 2dd05f09cc323018136a7ecdb3d1007be9ede27f, Linux 30e19a884c0b11f33821aacda7e72e914bec26ef
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
- CWE
- CWE-129
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5bdb9553fb134fd52ec208a8b378120670f6e784; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4f199203f79ca9cd7355799ccb26800174ff093; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 49ea46d9025aa1914b24ea957636cbe4367a7311; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 173cfd741ad7073640bfb7e2344c2a0ee005e769; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c8ca21a2836993d7cb816668458e05e598574e55; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2dd05f09cc323018136a7ecdb3d1007be9ede27f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 30e19a884c0b11f33821aacda7e72e914bec26ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c214006856ff52a8ff17ed8da52d50601d54f9ce | — | cvelist |
| Linux | 2.6.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38697. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38697.md Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5bdb9553fb134fd52ec208a8b378120670f6e784; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4f199203f79ca9cd7355799ccb26800174ff093; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe; >= 1da177e4c3f41524e886b7f… Fixed in: Linux 5bdb9553fb134fd52ec208a8b378120670f6e784, Linux 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe, Linux 49ea46d9025aa1914b24ea957636cbe4367a7311, Linux 173cfd741ad7073640bfb7e2344c2a0ee005e769, Linux 2dd05f09cc323018136a7ecdb3d1007be9ede27f, Linux 30e19a884c0b11f33821aacda7e72e914bec26ef 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.
References
Patches
- https://git.kernel.org/stable/c/5bdb9553fb134fd52ec208a8b378120670f6e784
- https://git.kernel.org/stable/c/a4f199203f79ca9cd7355799ccb26800174ff093
- https://git.kernel.org/stable/c/1467a75819e41341cd5ebd16faa2af1ca3c8f4fe
- https://git.kernel.org/stable/c/49ea46d9025aa1914b24ea957636cbe4367a7311
- https://git.kernel.org/stable/c/173cfd741ad7073640bfb7e2344c2a0ee005e769
- https://git.kernel.org/stable/c/c8ca21a2836993d7cb816668458e05e598574e55
- https://git.kernel.org/stable/c/2dd05f09cc323018136a7ecdb3d1007be9ede27f
- https://git.kernel.org/stable/c/30e19a884c0b11f33821aacda7e72e914bec26ef
- https://git.kernel.org/stable/c/c214006856ff52a8ff17ed8da52d50601d54f9ce
FAQ
Is CVE-2025-38697 being exploited?
There is no confirmed exploitation: CVE-2025-38697 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38697?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38697?
Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 5bdb9553fb134fd52ec208a8b378120670f6e784; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a4f199203f79ca9cd7355799ccb26800174ff093; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 49ea46d9025aa1914b24ea957636cbe4367a7311; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 173cfd741ad7073640bfb7e2344c2a0ee005e769; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c8ca21a2836993d7cb816668458e05e598574e55; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2dd05f09cc323018136a7ecdb3d1007be9ede27f; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 30e19a884c0b11f33821aacda7e72e914bec26ef; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c214006856ff52a8ff17ed8da52d50601d54f9ce; Linux 2.6.12.
Is there a fix for CVE-2025-38697?
Yes. Fixed in Linux 5bdb9553fb134fd52ec208a8b378120670f6e784, Linux 1467a75819e41341cd5ebd16faa2af1ca3c8f4fe, Linux 49ea46d9025aa1914b24ea957636cbe4367a7311, Linux 173cfd741ad7073640bfb7e2344c2a0ee005e769, Linux 2dd05f09cc323018136a7ecdb3d1007be9ede27f, Linux 30e19a884c0b11f33821aacda7e72e914bec26ef. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-38697?
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.