# CVE-2023-52799: jfs: fix array-index-out-of-bounds in dbFindLeaf

- 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.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:12.351Z
- Modified: 2026-08-05T09:11:27.824Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

jfs: fix array-index-out-of-bounds in dbFindLeaf

Currently while searching for dmtree_t for sufficient free blocks there
is an array out of bounds while getting element in tp->dm_stree. To add
the required check for out of bound we first need to determine the type
of dmtree. Thus added an extra parameter to dbFindLeaf so that the type
of tree can be determined and the required check can be applied.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 20f9310a18e3e99fc031e036fcbed67105ae1859; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 86df90f3fea7c5591f05c8a0010871d435e83046; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ecfb47f13b08b02cf28b7b50d4941eefa21954d2; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 81aa58cd8495b8c3b527f58ccbe19478d8087f61; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before da3da5e1e6f71c21d8e6149d7076d936ef5d4cb9; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a50b796d36719757526ee094c703378895ab5e67; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 88b7894a8f8705bf4e7ea90b10229376abf14514; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 87c681ab49e99039ff2dd3e71852417381b13878; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 22cad8bc1d36547cdae0eef316c47d917ce3147c; 2.6.12 (not affected: before 2.6.12; from 4.14.331 up to 4.14.*; from 4.19.300 up to 4.19.*; from 5.4.262 up to 5.4.*; from 5.10.202 up to 5.10.*; from 5.15.140 up to 5.15.*; from 6.1.64 up to 6.1.*; from 6.5.13 up to 6.5.*; from 6.6.3 up to 6.6.*; from 6.7 up to *)
- linux linux_kernel: before 4.14.331; from 4.15 before 4.19.300; from 4.20 before 5.4.262; from 5.5 before 5.10.202; from 5.11 before 5.15.140; from 5.16 before 6.1.64; from 6.2 before 6.5.13; from 6.6 before 6.6.3

## 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/20f9310a18e3e99fc031e036fcbed67105ae1859> (patch)
- <https://git.kernel.org/stable/c/86df90f3fea7c5591f05c8a0010871d435e83046> (patch)
- <https://git.kernel.org/stable/c/ecfb47f13b08b02cf28b7b50d4941eefa21954d2> (patch)
- <https://git.kernel.org/stable/c/81aa58cd8495b8c3b527f58ccbe19478d8087f61> (patch)
- <https://git.kernel.org/stable/c/da3da5e1e6f71c21d8e6149d7076d936ef5d4cb9> (patch)
- <https://git.kernel.org/stable/c/a50b796d36719757526ee094c703378895ab5e67> (patch)
- <https://git.kernel.org/stable/c/88b7894a8f8705bf4e7ea90b10229376abf14514> (patch)
- <https://git.kernel.org/stable/c/87c681ab49e99039ff2dd3e71852417381b13878> (patch)
- <https://git.kernel.org/stable/c/22cad8bc1d36547cdae0eef316c47d917ce3147c> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2023-52799 · Whole record: https://cve.day/CVE-2023-52799.json · Rebuilt by cve.day 2026-11-25T22:58:34.026Z
