# CVE-2023-52810: fs/jfs: Add check for negative db_l2nbperpage

- 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 19% of CVEs (2026-12-01)
- Published: 2024-05-21T15:31:19.629Z
- Modified: 2026-08-05T09:11:32.139Z
- Weaknesses: CWE-1335
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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

fs/jfs: Add check for negative db_l2nbperpage

l2nbperpage is log2(number of blks per page), and the minimum legal
value should be 0, not negative.

In the case of l2nbperpage being negative, an error will occur
when subsequently used as shift exponent.

Syzbot reported this bug:

UBSAN: shift-out-of-bounds in fs/jfs/jfs_dmap.c:799:12
shift exponent -16777216 is negative

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cc61fcf7d1c99f148fe8ddfb5c6ed0bb75861f01; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8f2964df6bfce9d92d81ca552010b8677af8d9dc; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a81a56b4cbe3142cc99f6b98e8f9b3a631c768e1; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 524b4f203afcf87accfe387e846f33f916f0c907; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 5f148b16972e5f4592629b244d5109b15135f53f; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0cb567e727339a192f9fd0db00781d73a91d15a6; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 491085258185ffc4fb91555b0dba895fe7656a45; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1a7c53fdea1d189087544d9a606d249e93c4934b; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 525b861a008143048535011f3816d407940f4bfa; 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: from 1da177e4c3f4 before cc61fcf7d1c9; from 1da177e4c3f4 before 8f2964df6bfc; from 1da177e4c3f4 before a81a56b4cbe3; from 1da177e4c3f4 before 524b4f203afc; from 1da177e4c3f4 before 5f148b16972e; from 1da177e4c3f4 before 0cb567e72733; from 1da177e4c3f4 before 491085258185; from 1da177e4c3f4 before 1a7c53fdea1d; from 1da177e4c3f4 before 525b861a0081; before 4.14.331; from 4.15 before 4.19.300; from 4.20 before 5.4.262; and 5 more (not affected: 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.*; 6.7)

## 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`
- CISA-ADP: CVSS:3.1 8.4 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/cc61fcf7d1c99f148fe8ddfb5c6ed0bb75861f01> (patch)
- <https://git.kernel.org/stable/c/8f2964df6bfce9d92d81ca552010b8677af8d9dc> (patch)
- <https://git.kernel.org/stable/c/a81a56b4cbe3142cc99f6b98e8f9b3a631c768e1> (patch)
- <https://git.kernel.org/stable/c/524b4f203afcf87accfe387e846f33f916f0c907> (patch)
- <https://git.kernel.org/stable/c/5f148b16972e5f4592629b244d5109b15135f53f> (patch)
- <https://git.kernel.org/stable/c/0cb567e727339a192f9fd0db00781d73a91d15a6> (patch)
- <https://git.kernel.org/stable/c/491085258185ffc4fb91555b0dba895fe7656a45> (patch)
- <https://git.kernel.org/stable/c/1a7c53fdea1d189087544d9a606d249e93c4934b> (patch)
- <https://git.kernel.org/stable/c/525b861a008143048535011f3816d407940f4bfa> (patch)

## Sources

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

---

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