CVE-2024-36016

tty: n_gsm: fix possible out-of-bounds in gsm0_receive()

HIGH
7.8
CVSS Score
Published: May 29, 2024 at 06:46 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.35 ≤ v < 4.19.3162.6.35 ≤ v < 5.10.2192.6.35 ≤ v < 5.15.1612.6.35 ≤ v < 5.4.2782.6.35 ≤ v < 6.1.932.6.35 ≤ v < 6.102.6.35 ≤ v < 6.6.332.6.35 ≤ v < 6.8.122.6.35 ≤ v < 6.9.34.20 ≤ v < 5.4.2785.11 ≤ v < 5.15.1615.16 ≤ v < 6.1.935.5 ≤ v < 5.10.2196.2 ≤ v < 6.6.336.7 ≤ v < 6.8.126.9 ≤ v < 6.9.32.6.35e1eaea46bb40e1eaea46bb4020b38a141b84f88565d4603f8dd0
Vendor states this is fixed in 0fb736c9931e (fixed)
Vendor states this is fixed in 0fb736c9931e02dbc7d9a75044c8e1c039e50f04 (fixed)
Vendor states this is fixed in 46f52c89a7e7d2691b97a9728e4591d071ca8abc (fixed)
Vendor states this is fixed in 47388e807f85 (fixed)
Vendor states this is fixed in 47388e807f85948eefc403a8a5fdc5b406a65d5a (fixed)
Vendor states this is fixed in 4c267110fc11 (fixed)
Vendor states this is fixed in 4c267110fc110390704cc065edb9817fdd10ff54 (fixed)
Vendor states this is fixed in 774d83b008ec (fixed)
Vendor states this is fixed in 774d83b008eccb1c48c14dc5486e7aa255731350 (fixed)
Vendor states this is fixed in 9513d4148950 (fixed)
Vendor states this is fixed in 9513d4148950b05bc99fa7314dc883cc0e1605e5 (fixed)
Vendor states this is fixed in b229bc6c6ea9 (fixed)
Vendor states this is fixed in b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56 (fixed)
Vendor states this is fixed in b890d45aaf02 (fixed)
Vendor states this is fixed in b890d45aaf02b564e6cae2d2a590f9649330857d (fixed)
Vendor states this is fixed in f126ce7305fe (fixed)
Vendor states this is fixed in f126ce7305fe88f49cdabc6db4168b9318898ea3 (fixed)
Vendor states this is fixed in 2.6.35 (unaffected)
Vendor states this is fixed in 4.19.316 (unaffected)
Vendor states this is fixed in 5.10.219 (unaffected)
Vendor states this is fixed in 5.15.161 (unaffected)
Vendor states this is fixed in 5.4.278 (unaffected)
Vendor states this is fixed in 6.1.93 (unaffected)
Vendor states this is fixed in 6.10 (unaffected)
Vendor states this is fixed in 6.6.33 (unaffected)
Vendor states this is fixed in 6.8.12 (unaffected)
Vendor states this is fixed in 6.9.3 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0fb736c9931e02dbc7d9a75044c8e1c039e50f04
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/46f52c89a7e7d2691b97a9728e4591d071ca8abc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/47388e807f85948eefc403a8a5fdc5b406a65d5a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4c267110fc110390704cc065edb9817fdd10ff54
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/774d83b008eccb1c48c14dc5486e7aa255731350
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9513d4148950b05bc99fa7314dc883cc0e1605e5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b890d45aaf02b564e6cae2d2a590f9649330857d

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card