CVE-2023-53222CWE-125

CVE-2023-53222

High · published September 15, 2025

CVSS v3.1
7.8
EPSS
0%
Percentile
5.9
In the wild
Unconfirmed
What it is

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

jfs: jfs_dmap: Validate db_l2nbperpage while mounting

In jfs_dmap.c at line 381, BLKTODMAP is used to get a logical block

number inside dbFree(). db_l2nbperpage, which is the log2 number of

blocks per page, is passed as an argument to BLKTODMAP which uses it

for shifting.

Syzbot reported a shift out-of-bounds crash because db_l2nbperpage is

too big. This happens because the large value is set without any

validation in dbMount() at line 181.

Thus, make sure that db_l2nbperpage is correct while mounting.

Max number of blocks per page = Page size / Min block size

=> log2(Max num_block per page) = log2(Page size / Min block size)

= log2(Page size) - log2(Min block size)

=> Max db_l2nbperpage = L2PSIZE - L2MINBLOCKSIZE

The record
Technical detail
CVSS v3.1
7.8 · HIGH
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00168 · 5.9th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-09-15T19:15Z
Affected products (7)
ProductVersionsFixed in
linux/linux_kernel< 4.14.3224.14.322
linux/linux_kernel≥ 4.15, < 4.19.2914.19.291
linux/linux_kernel≥ 4.20, < 5.4.2515.4.251
linux/linux_kernel≥ 5.5, < 5.10.1885.10.188
linux/linux_kernel≥ 5.11, < 5.15.1215.15.121
linux/linux_kernel≥ 5.16, < 6.1.406.1.40
linux/linux_kernel≥ 6.2, < 6.4.56.4.5
References (8)
EPSS history
Timeline
  • 15 SEP 14:21Z
    jfs: jfs_dmap: Validate db_l2nbperpage while mounting
    cvelistv5