CVE-2023-53222
Severity CVSS v4.0:
Pending analysis
Type:
CWE-125
Out-of-bounds Read
Publication date:
15/09/2025
Last modified:
14/01/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
jfs: jfs_dmap: Validate db_l2nbperpage while mounting<br />
<br />
In jfs_dmap.c at line 381, BLKTODMAP is used to get a logical block<br />
number inside dbFree(). db_l2nbperpage, which is the log2 number of<br />
blocks per page, is passed as an argument to BLKTODMAP which uses it<br />
for shifting.<br />
<br />
Syzbot reported a shift out-of-bounds crash because db_l2nbperpage is<br />
too big. This happens because the large value is set without any<br />
validation in dbMount() at line 181.<br />
<br />
Thus, make sure that db_l2nbperpage is correct while mounting.<br />
<br />
Max number of blocks per page = Page size / Min block size<br />
=> log2(Max num_block per page) = log2(Page size / Min block size)<br />
= log2(Page size) - log2(Min block size)<br />
<br />
=> Max db_l2nbperpage = L2PSIZE - L2MINBLOCKSIZE
Impact
Base Score 3.x
7.10
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.14.322 (excluding) | |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.15 (including) | 4.19.291 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 4.20 (including) | 5.4.251 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.5 (including) | 5.10.188 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.11 (including) | 5.15.121 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.16 (including) | 6.1.40 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.4.5 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/11509910c599cbd04585ec35a6d5e1a0053d84c1
- https://git.kernel.org/stable/c/2a03c4e683d33d17b667418eb717b13dda1fac6b
- https://git.kernel.org/stable/c/47b7eaae08e8b2f25bdf37bc14d21be090bcb20f
- https://git.kernel.org/stable/c/8c1efe3f74a7864461b0dff281c5562154b4aa8e
- https://git.kernel.org/stable/c/a4855aeb13e4ad1f23e16753b68212e180f7d848
- https://git.kernel.org/stable/c/c7feb54b113802d2aba98708769d3c33fb017254
- https://git.kernel.org/stable/c/de984faecddb900fa850af4df574a25b32bb93f5
- https://git.kernel.org/stable/c/ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2



