CVE-2024-36016 Details
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.
A vulnerability allowing a potential out-of-bounds write has been identified in the Linux kernel's TTY n_gsm line discipline. This issue arises when the n_gsm is configured in basic option mode, and data frames are sent that exceed the expected length, leading to memory corruption. The vulnerability is present in several versions of the Linux kernel.
Users can upgrade to Linux kernel version 4.19.316-1, which addresses this vulnerability by adding proper length checks and resetting the state and length parameters after reconfiguration.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 30, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.35, < 4.19.316 >= 4.20, < 5.4.278 >= 5.5, < 5.10.219 >= 5.11, < 5.15.161 >= 5.16, < 6.1.93 >= 6.2, < 6.6.33 >= 6.7, < 6.8.12 >= 6.9, < 6.9.3 |
CPE
Remediation
| |
Change History
13 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 4, 2025 | CVE Modified | CVE |
| Apr 1, 2025 | Initial Analysis | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Jul 15, 2024 | CVE Modified | kernel.org |
| Jul 3, 2024 | CVE Modified | CISA-ADP |
| Jun 27, 2024 | CVE Modified | kernel.org |
| Jun 16, 2024 | CVE Modified | kernel.org |
| Jun 12, 2024 | CVE Modified | kernel.org |
| May 30, 2024 | CVE Modified | kernel.org |
| May 29, 2024 | New CVE Received | kernel.org |