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

Published May 29, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

tty: ngsm: fix possible out-of-bounds in gsm0receive()

Assuming the following: - side A configures the ngsm 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 gsm0receive() 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 MAXMRU in gsm0receive() and gsm1receive() 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.

Other sources

In the Linux kernel, the following vulnerability has been resolved:

tty: ngsm: fix possible out-of-bounds in gsm0receive()

The Linux kernel CVE team has assigned CVE-2024-36016 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052947-CVE-2024-36016-d30a@gregkh/T

Red Hat

Affected Software

14 affected componentsFixes available
redhat/kernel<6.10
6.10
Linux Linux kernel>=2.6.35<4.19.316
Linux Linux kernel>=4.20<5.4.278
Linux Linux kernel>=5.5<5.10.219
Linux Linux kernel>=5.11<5.15.161
Linux Linux kernel>=5.16<6.1.93
Linux Linux kernel>=6.2<6.6.33
Linux Linux kernel>=6.7<6.8.12
Linux Linux kernel>=6.9<6.9.3
IBM Security Verify Governance<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Software Stack<=ISVG 10.0.2
IBM Security Verify Governance, Identity Manager Virtual Appliance<=ISVG 10.0.2
IBM Security Verify Governance Identity Manager Container<=ISVG 10.0.2
debian/linux
5.10.223-15.10.234-16.1.137-16.1.135-16.12.27-1

Event History

May 29, 2024
CVE Published
via MITRE·06:46 PM
Data Sourced
via MITRE·06:46 PM
Description
Data Sourced
via NVD·07:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 30, 2024
Data Sourced
via Red Hat·07:17 AM
DescriptionSeverityAffected Software
Jul 29, 2024
Data Sourced
via Launchpad·10:59 AM
Description
Apr 27, 2025
Data Sourced
via Ubuntu·11:39 AM
RemedyDescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-36016?

The severity of CVE-2024-36016 is classified as high due to the potential for out-of-bounds access.

2

How do I fix CVE-2024-36016?

To fix CVE-2024-36016, update to the latest kernel versions: 6.10 or specific versions outlined in Debian package updates.

3

What software is affected by CVE-2024-36016?

CVE-2024-36016 affects specific versions of the Red Hat kernel and Debian Linux packages.

4

Is CVE-2024-36016 present in older kernel versions?

Yes, CVE-2024-36016 is present in older kernel versions prior to the specified fixes.

5

What components are involved in CVE-2024-36016?

CVE-2024-36016 involves the tty subsystem and the n_gsm protocol in the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203