CVE-2024-36016
Vulnerability Summary
Timeline
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.
CVSS Metrics
- v3.1•HIGH•Score: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS Trends
Current EPSS score: 0.27%• Percentile: 19%
Techniques & Countermeasures
- CWE-125•Out-of-bounds Read
The product reads data past the end, or before the beginning, of the intended buffer.
Affected Systems
- debian•linux
< 5.10.221-1 | < 6.1.94-1 | < 6.8.12-1 | < 6.8.12-1
- ubuntu•linux
all | < 4.4.0-257.291 | < 4.15.0-227.239 | < 5.4.0-190.210 | < 5.15.0-117.127 | < 6.8.0-39.39
- ubuntu•linux-allwinner-5.19
all
- ubuntu•linux-aws
< 4.4.0-1134.140 | < 4.4.0-1172.187 | < 4.15.0-1170.183 | < 5.4.0-1129.139 | < 5.15.0-1066.72 | < 6.8.0-1012.13
- ubuntu•linux-aws-5.0
all
- ubuntu•linux-aws-5.11
all
- ubuntu•linux-aws-5.13
all
- ubuntu•linux-aws-5.15
< 5.15.0-1066.72~20.04.1
- ubuntu•linux-aws-5.19
all
- ubuntu•linux-aws-5.3
all
- ubuntu•linux-aws-5.4
< 5.4.0-1129.139~18.04.1
- ubuntu•linux-aws-5.8
all
- ubuntu•linux-aws-6.2
all
- ubuntu•linux-aws-6.5
all
- ubuntu•linux-aws-6.8
< 6.8.0-1013.14~22.04.1
- ubuntu•linux-aws-fips
< 4.15.0-2109.115 | all | < 5.4.0-1129.139+fips1 | < 5.15.0-1066.72+fips1
- ubuntu•linux-aws-hwe
< 4.15.0-1170.183~16.04.1
- ubuntu•linux-azure
< 4.15.0-1179.194~14.04.1 | < 4.15.0-1179.194~16.04.1 | all | < 5.4.0-1134.141 | < 5.15.0-1070.79 | < 6.8.0-1012.14
- ubuntu•linux-azure-4.15
< 4.15.0-1179.194
- ubuntu•linux-azure-5.11
all
- ubuntu•linux-azure-5.13
all
- ubuntu•linux-azure-5.15
< 5.15.0-1070.79~20.04.1
- ubuntu•linux-azure-5.19
all
- ubuntu•linux-azure-5.3
all
- ubuntu•linux-azure-5.4
< 5.4.0-1134.141~18.04.1
- ubuntu•linux-azure-5.8
all
- ubuntu•linux-azure-6.2
all
- ubuntu•linux-azure-6.5
all
- ubuntu•linux-azure-6.8
< 6.8.0-1012.14~22.04.1
- ubuntu•linux-azure-edge
all
- ubuntu•linux-azure-fde
all | < 5.15.0-1070.79.1
- ubuntu•linux-azure-fde-5.19
all
- ubuntu•linux-azure-fde-6.2
all
- ubuntu•linux-azure-fips
< 4.15.0-2088.94 | all | < 5.4.0-1134.141+fips1 | < 5.15.0-1070.79+fips1
- ubuntu•linux-bluefield
all | < 5.4.0-1089.96 | < 5.15.0-1048.50
- ubuntu•linux-fips
< 4.4.0-1103.110 | all | < 4.15.0-1125.136 | < 5.4.0-1103.113 | < 5.15.0-117.127+fips1 | < 6.8.0-78.78+fips1
- ubuntu•linux-gcp
< 4.15.0-1164.181~16.04.1 | all | < 5.4.0-1133.142 | < 5.15.0-1065.73 | < 6.8.0-1011.12
- ubuntu•linux-gcp-4.15
< 4.15.0-1164.181
- ubuntu•linux-gcp-5.11
all
- ubuntu•linux-gcp-5.13
all
- ubuntu•linux-gcp-5.15
< 5.15.0-1065.73~20.04.1
- ubuntu•linux-gcp-5.19
all
- ubuntu•linux-gcp-5.3
all
- ubuntu•linux-gcp-5.4
< 5.4.0-1133.142~18.04.1
- ubuntu•linux-gcp-5.8
all
- ubuntu•linux-gcp-6.2
all
- ubuntu•linux-gcp-6.5
all
- ubuntu•linux-gcp-6.8
< 6.8.0-1011.12~22.04.1
- ubuntu•linux-gcp-fips
< 4.15.0-2072.77 | all | < 5.4.0-1133.142+fips1 | < 5.15.0-1065.73+fips1
- ubuntu•linux-gke
all | < 5.15.0-1063.69 | < 6.8.0-1007.10
Showing first 50 affected entries in server-rendered view.
References (32)
- 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
- https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html
- https://ubuntu.com/security/CVE-2024-36016
- https://www.cve.org/CVERecord?id=CVE-2024-36016
- https://git.kernel.org/linus/47388e807f85948eefc403a8a5fdc5b406a65d5a
- https://ubuntu.com/security/notices/USN-6923-1
- https://ubuntu.com/security/notices/USN-6921-1
- https://ubuntu.com/security/notices/USN-6924-1
- https://ubuntu.com/security/notices/USN-6926-1
- https://ubuntu.com/security/notices/USN-6921-2
- https://ubuntu.com/security/notices/USN-6923-2
- https://ubuntu.com/security/notices/USN-6927-1
- https://ubuntu.com/security/notices/USN-6924-2
- https://ubuntu.com/security/notices/USN-6938-1
- https://ubuntu.com/security/notices/USN-6926-2
- https://ubuntu.com/security/notices/USN-6952-1
- https://ubuntu.com/security/notices/USN-6953-1
- https://ubuntu.com/security/notices/USN-6926-3
- https://ubuntu.com/security/notices/USN-6956-1
- https://ubuntu.com/security/notices/USN-6957-1
- https://ubuntu.com/security/notices/USN-6952-2
- https://ubuntu.com/security/notices/USN-6979-1
- https://ubuntu.com/security/notices/USN-7019-1
- https://security-tracker.debian.org/tracker/CVE-2024-36016