2084AI Security Observatory

CVE

CVE-2023-53222

CVE-2023-53222HIGH 7.1EPSS 7%

CNA description

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

Affected versions

All Linux kernel vulnerabilities →

  • ≥ 6.2, < 6.4.5Fixed in 6.4.5
  • ≥ 5.16, < 6.1.40Fixed in 6.1.40
  • ≥ 5.11, < 5.15.121Fixed in 5.15.121
  • ≥ 5.5, < 5.10.188Fixed in 5.10.188
  • ≥ 4.20, < 5.4.251Fixed in 5.4.251
  • ≥ 4.15, < 4.19.291Fixed in 4.19.291
  • < 4.14.322Fixed in 4.14.322

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.