CyberSecBulletin
CVE-2023-53222NVD status: Modified

Linux: Out-of-bounds Read

CVE-2023-53222 is a high-severity out-of-bounds read vulnerability in Linux, with a CVSS 3.1 base score of 7.1 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions 8c1efe3f74a7864461b0dff281c5562154b4aa8e, ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2, a4855aeb13e4ad1f23e16753b68212e180f7d848 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.17% chance of exploitation within 30 days, which is low compared with other CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to 8c1efe3f74a7864461b0dff281c5562154b4aa8e or ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2 or a4855aeb13e4ad1f23e16753b68212e180f7d848 or 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 4.14.322 or 4.19.291 or 5.4.251 or 5.10.188, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 8c1efe3f74a7864461b0dff281c5562154b4aa8e; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, a4855aeb13e4ad1f23e16753b68212e180f7d848; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, de984faecddb900fa850af4df574a25b32bb93f5; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, c7feb54b113802d2aba98708769d3c33fb017254; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 2a03c4e683d33d17b667418eb717b13dda1fac6b; 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 up to, but not including, 11509910c599cbd04585ec35a6d5e1a0053d84c1; and 1 more ranges8c1efe3f74a7864461b0dff281c5562154b4aa8e, ef5c205b6e6f8d1f18ef0b4a9832b1b5fa85f7f2, a4855aeb13e4ad1f23e16753b68212e180f7d848, 47b7eaae08e8b2f25bdf37bc14d21be090bcb20f, de984faecddb900fa850af4df574a25b32bb93f5, c7feb54b113802d2aba98708769d3c33fb017254
LinuxLinux Kernelbefore 4.14.322; 4.15 up to, but not including, 4.19.291; 4.20 up to, but not including, 5.4.251; 5.5 up to, but not including, 5.10.188; 5.11 up to, but not including, 5.15.121; 5.16 up to, but not including, 6.1.40; 6.2 up to, but not including, 6.4.54.14.322, 4.19.291, 5.4.251, 5.10.188, 5.15.121, 6.1.40

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
LocalThe attacker needs local access or must trick a user into running something.
Attack complexity
LowNo special conditions are needed; the attack works reliably.
Privileges required
LowA basic user account is enough.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
NoneNothing can be modified.
Availability
HighThe component can be taken down completely.

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H. Scored by NVD.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.1HighNVD
CVSS 3.17.1HighCISA (ADP)

Official 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

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: Out-of-bounds Read

The product reads data past the end, or before the beginning, of the intended buffer.

How developers prevent this class of flaw

  • Use a language that provides appropriate memory abstractions.

More Out-of-bounds Read vulnerabilities (CWE-125)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Out-of-bounds Read vulnerabilities

Spotted an error? Tell us.