CyberSecBulletin
CVE-2024-36016NVD status: Modified

Linux: Out-of-bounds Read

CVE-2024-36016 is a high-severity out-of-bounds read vulnerability in Linux, with a CVSS 3.1 base score of 7.8 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 9513d4148950b05bc99fa7314dc883cc0e1605e5, b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56, 0fb736c9931e02dbc7d9a75044c8e1c039e50f04 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.27% 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 9513d4148950b05bc99fa7314dc883cc0e1605e5 or b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56 or 0fb736c9931e02dbc7d9a75044c8e1c039e50f04 or 4c267110fc110390704cc065edb9817fdd10ff54, whichever matches your release line, or a later version.
  2. Update linux_kernel to b890d45aaf02 or 47388e807f85 or f126ce7305fe or 9513d4148950, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinuxe1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, 9513d4148950b05bc99fa7314dc883cc0e1605e5; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, 0fb736c9931e02dbc7d9a75044c8e1c039e50f04; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, 4c267110fc110390704cc065edb9817fdd10ff54; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, 46f52c89a7e7d2691b97a9728e4591d071ca8abc; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, 774d83b008eccb1c48c14dc5486e7aa255731350; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, f126ce7305fe88f49cdabc6db4168b9318898ea3; e1eaea46bb4020b38a141b84f88565d4603f8dd0 up to, but not including, b890d45aaf02b564e6cae2d2a590f9649330857d; and 2 more ranges9513d4148950b05bc99fa7314dc883cc0e1605e5, b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56, 0fb736c9931e02dbc7d9a75044c8e1c039e50f04, 4c267110fc110390704cc065edb9817fdd10ff54, 46f52c89a7e7d2691b97a9728e4591d071ca8abc, 774d83b008eccb1c48c14dc5486e7aa255731350
Linuxlinux_kernele1eaea46bb40 up to, but not including, b890d45aaf02; e1eaea46bb40 up to, but not including, 47388e807f85; 2.6.35; e1eaea46bb40 up to, but not including, f126ce7305fe; e1eaea46bb40 up to, but not including, 9513d4148950; e1eaea46bb40 up to, but not including, b229bc6c6ea9; e1eaea46bb40 up to, but not including, 0fb736c9931e; e1eaea46bb40 up to, but not including, 4c267110fc11; and 2 more rangesb890d45aaf02, 47388e807f85, f126ce7305fe, 9513d4148950, b229bc6c6ea9, 0fb736c9931e

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
HighData or code can be modified at will.
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:H/A:H. Scored by CNA.

Scoring systemScoreSeverityScored by
CVSS 3.17.8HighCNA
CVSS 3.17.7HighCISA (ADP)

Official description

In the Linux kernel, the following vulnerability has been resolved: tty: n_gsm: fix possible out-of-bounds in gsm0_receive() Assuming the following: - side A configures the n_gsm in basic option mode - side B sends the header of a basic option mode frame with data length 1 - side A switches to advanced option mode - side B sends 2 data bytes which exceeds gsm->len Reason: gsm->len is not used in advanced option mode. - side A switches to basic option mode - side B keeps sending until gsm0_receive() writes past gsm->buf Reason: Neither gsm->state nor gsm->len have been reset after reconfiguration. Fix this by changing gsm->count to gsm->len comparison from equal to less than. Also add upper limit checks against the constant MAX_MRU in gsm0_receive() and gsm1_receive() to harden against memory corruption of gsm->len and gsm->mru. All other checks remain as we still need to limit the data according to the user configuration and actual payload size.

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.