tty: n_gsm: fix possible out-of-bounds in gsm0_receive()
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 19 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 2.6.35 and later | 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.8.12, 6.9.3, 6.10 | Patch available | CNA |
- Linux VendorLinux Affected 2.6.35 and later Fixed in 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.8.12, 6.9.3, 6.10 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 2.6.35 to before 4.19.316; 4.20 to before 5.4.278; 5.5 to before 5.10.219; 5.11 to before 5.15.161; 5.16 to before 6.1.93; 6.2 to before 6.6.33; 6.7 to before 6.8.12; 6.9 to before 6.9.3 | Vulnerable | Linux |
- cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* Versions 2.6.35 to before 4.19.316; 4.20 to before 5.4.278; 5.5 to before 5.10.219; 5.11 to before 5.15.161; 5.16 to before 6.1.93; 6.2 to before 6.6.33; 6.7 to before 6.8.12; 6.9 to before 6.9.3 Vulnerable ·Linux
Remediation
- Fix · CNA Linux (Linux) Fixed in 4.19.316, 5.4.278, 5.10.219, 5.15.161, 6.1.93, 6.6.33, 6.8.12, 6.9.3, 6.10
Red Hat 7 advisories
- RHSA-2024:6997 Released 2024-09-24 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux AppStream (v. 9) kernel-64k-debug-devel-5.14.0-427.37.1.el9_4, kernel-64k-debug-devel-matched-5.14.0-427.37.1.el9_4, kernel-64k-devel-5.14.0-427.37.1.el9_4 +11
- Red Hat Enterprise Linux BaseOS (v. 9) bpftool-7.3.0-427.37.1.el9_4, kernel-5.14.0-427.37.1.el9_4, kernel-64k-5.14.0-427.37.1.el9_4 +29
- Red Hat Enterprise Linux CRB (v. 9) kernel-tools-libs-devel-5.14.0-427.37.1.el9_4, libperf-5.14.0-427.37.1.el9_4
- Red Hat Enterprise Linux NFV (v. 9) kernel-rt-5.14.0-427.37.1.el9_4, kernel-rt-core-5.14.0-427.37.1.el9_4, kernel-rt-debug-5.14.0-427.37.1.el9_4 +11
- Red Hat Enterprise Linux RT (v. 9) kernel-rt-5.14.0-427.37.1.el9_4, kernel-rt-core-5.14.0-427.37.1.el9_4, kernel-rt-debug-5.14.0-427.37.1.el9_4 +9
- RHSA-2024:6993 Released 2024-09-24 · Red Hat rating Importantkernel security update
- Red Hat CodeReady Linux Builder EUS (v.8.8) kernel-tools-libs-devel-4.18.0-477.74.1.el8_8
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) bpftool-4.18.0-477.74.1.el8_8, kernel-4.18.0-477.74.1.el8_8, kernel-abi-stablelists-4.18.0-477.74.1.el8_8 +19
- RHSA-2024:5692 Released 2024-08-21 · Red Hat rating Moderatekernel security update
- Red Hat Enterprise Linux BaseOS AUS (v.8.6) bpftool-4.18.0-372.119.1.el8_6, kernel-4.18.0-372.119.1.el8_6, kernel-abi-stablelists-4.18.0-372.119.1.el8_6 +13
- Red Hat Enterprise Linux BaseOS E4S (v.8.6) bpftool-4.18.0-372.119.1.el8_6, kernel-4.18.0-372.119.1.el8_6, kernel-abi-stablelists-4.18.0-372.119.1.el8_6 +18
- Red Hat Enterprise Linux BaseOS TUS (v.8.6) bpftool-4.18.0-372.119.1.el8_6, kernel-4.18.0-372.119.1.el8_6, kernel-abi-stablelists-4.18.0-372.119.1.el8_6 +13
Show 4 more Red Hat advisories
- RHSA-2024:5101 Released 2024-08-08 · Red Hat rating Importantkernel security update
- Red Hat Enterprise Linux BaseOS (v. 8) bpftool-4.18.0-553.16.1.el8_10, kernel-4.18.0-553.16.1.el8_10, kernel-abi-stablelists-4.18.0-553.16.1.el8_10 +19
- Red Hat Enterprise Linux CRB (v. 8) kernel-tools-libs-devel-4.18.0-553.16.1.el8_10
- RHSA-2024:5102 Released 2024-08-08 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux NFV (v. 8) kernel-rt-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-4.18.0-553.16.1.rt7.357.el8_10 +9
- Red Hat Enterprise Linux RT (v. 8) kernel-rt-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-core-4.18.0-553.16.1.rt7.357.el8_10, kernel-rt-debug-4.18.0-553.16.1.rt7.357.el8_10 +7
- RHSA-2024:4554 Released 2024-07-15 · Red Hat rating Importantkernel-rt security update
- Red Hat Enterprise Linux Real Time EUS (v.9.2) kernel-rt-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-core-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-5.14.0-284.73.1.rt14.358.el9_2 +9
- Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) kernel-rt-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-core-5.14.0-284.73.1.rt14.358.el9_2, kernel-rt-debug-5.14.0-284.73.1.rt14.358.el9_2 +11
- RHSA-2024:4533 Released 2024-07-15 · Red Hat rating Importantkernel security update
- Red Hat CodeReady Linux Builder EUS (v.9.2) kernel-tools-libs-devel-5.14.0-284.73.1.el9_2
- Red Hat Enterprise Linux AppStream EUS (v.9.2) kernel-64k-debug-devel-5.14.0-284.73.1.el9_2, kernel-64k-debug-devel-matched-5.14.0-284.73.1.el9_2, kernel-64k-devel-5.14.0-284.73.1.el9_2 +9
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) bpftool-7.0.0-284.73.1.el9_2, kernel-5.14.0-284.73.1.el9_2, kernel-64k-5.14.0-284.73.1.el9_2 +29
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:6993 |
| Red Hat CodeReady Linux Builder EUS (v.9.2) | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2024:6997 |
| Red Hat Enterprise Linux AppStream EUS (v.9.2) | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:5101 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:6997 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.6) | Fixed | RHSA-2024:5692 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.6) | Fixed | RHSA-2024:5692 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:6993 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:4533 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.6) | Fixed | RHSA-2024:5692 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2024:5101 |
| Red Hat Enterprise Linux CRB (v. 9) | Fixed | RHSA-2024:6997 |
| Red Hat Enterprise Linux NFV (v. 8) | Fixed | RHSA-2024:5102 |
| Red Hat Enterprise Linux NFV (v. 9) | Fixed | RHSA-2024:6997 |
| Red Hat Enterprise Linux RT (v. 8) | Fixed | RHSA-2024:5102 |
| Red Hat Enterprise Linux RT (v. 9) | Fixed | RHSA-2024:6997 |
| Red Hat Enterprise Linux Real Time EUS (v.9.2) | Fixed | RHSA-2024:4554 |
| Red Hat Enterprise Linux Real Time for NFV EUS (v.9.2) | Fixed | RHSA-2024:4554 |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux AppStream EUS (v.9.2)
- Red Hat Enterprise Linux BaseOS AUS (v.8.6)
- Red Hat Enterprise Linux BaseOS E4S (v.8.6)
- Red Hat Enterprise Linux BaseOS TUS (v.8.6)
Timeline
- 2026-10-02 Threatist record created from CVE-2024-36016
References
Patch 9
- https://git.kernel.org/stable/c/9513d4148950b05bc99fa7314dc883cc0e1605e5
- https://git.kernel.org/stable/c/b229bc6c6ea9fe459fc3fa94fd0a27a2f32aca56
- https://git.kernel.org/stable/c/0fb736c9931e02dbc7d9a75044c8e1c039e50f04
- https://git.kernel.org/stable/c/4c267110fc110390704cc065edb9817fdd10ff54
- https://git.kernel.org/stable/c/46f52c89a7e7d2691b97a9728e4591d071ca8abc
- https://git.kernel.org/stable/c/774d83b008eccb1c48c14dc5486e7aa255731350
- https://git.kernel.org/stable/c/f126ce7305fe88f49cdabc6db4168b9318898ea3
- https://git.kernel.org/stable/c/b890d45aaf02b564e6cae2d2a590f9649330857d
- https://git.kernel.org/stable/c/47388e807f85948eefc403a8a5fdc5b406a65d5a
More Linux Kernel vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
- TI-2021-05514 Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACE KEVCVSS 3.1HIGH 8.3
Sources
- CVE-2024-36016 · CVE Program
- CVE-2024-36016 · NVD
- FIRST EPSS
- CVE-2024-36016 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences