CVE-2023-53222
EUVD-2023-5986215.09.2025, 15:15
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 - L2MINBLOCKSIZEEnginsight
Affected Products (NVD)
| Vendor | Product | Version |
|---|---|---|
| linux | linux_kernel | 𝑥 < 4.14.322 |
| linux | linux_kernel | 4.15 ≤ 𝑥 < 4.19.291 |
| linux | linux_kernel | 4.20 ≤ 𝑥 < 5.4.251 |
| linux | linux_kernel | 5.5 ≤ 𝑥 < 5.10.188 |
| linux | linux_kernel | 5.11 ≤ 𝑥 < 5.15.121 |
| linux | linux_kernel | 5.16 ≤ 𝑥 < 6.1.40 |
| linux | linux_kernel | 6.2 ≤ 𝑥 < 6.4.5 |
𝑥
= Vulnerable software versions
Debian Releases
openSUSE / SLES Releases
openSUSE Product | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cluster-md-kmp-default |
| ||||||||||||||||
| dlm-kmp-default |
| ||||||||||||||||
| gfs2-kmp-default |
| ||||||||||||||||
| kernel-64kb |
| ||||||||||||||||
| kernel-azure |
| ||||||||||||||||
| kernel-default |
| ||||||||||||||||
| kernel-default-base |
| ||||||||||||||||
| kernel-obs-build |
| ||||||||||||||||
| kernel-source |
| ||||||||||||||||
| kernel-source-azure |
| ||||||||||||||||
| kernel-zfcpdump |
| ||||||||||||||||
| ocfs2-kmp-default |
| ||||||||||||||||
| reiserfs-kmp-default |
|
Amazon Linux Releases
Amazon Package | |||
|---|---|---|---|
| kernel |
| ||
| kernel-debuginfo |
| ||
| kernel-debuginfo-common-aarch64 |
| ||
| kernel-debuginfo-common-x86_64 |
| ||
| kernel-devel |
| ||
| kernel-headers |
| ||
| kernel-livepatch-4.14.322-244.536 |
| ||
| kernel-tools |
| ||
| kernel-tools-debuginfo |
| ||
| kernel-tools-devel |
| ||
| perf |
| ||
| perf-debuginfo |
| ||
| python-perf |
| ||
| python-perf-debuginfo |
|
Common Weakness Enumeration
References