CVE-2024-45158: Buffer Overflow

Published Sep 5, 2024
·
Updated

An issue was discovered in Mbed TLS 3.6 before 3.6.1. A stack buffer overflow in mbedtlsecdsadertoraw() and mbedtlsecdsarawtoder() can occur when the bits parameter is larger than the largest supported curve. In some configurations with PSA disabled, all values of bits are affected. (This never happens in internal library calls, but can affect applications that call these functions directly.)

Affected Software

2 affected components
Mbed TLS Mbed TLS<3.6.1
TrustedFirmware Mbed Tls=3.6.0

Event History

Sep 5, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeaknessAffected Software
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-45158?

CVE-2024-45158 has a high severity due to its potential for causing stack buffer overflows.

2

How do I fix CVE-2024-45158?

To fix CVE-2024-45158, update Mbed TLS to version 3.6.1 or later.

3

What versions of Mbed TLS are affected by CVE-2024-45158?

Mbed TLS versions prior to 3.6.1 are affected by CVE-2024-45158.

4

What is the impact of CVE-2024-45158?

CVE-2024-45158 can lead to buffer overflows, potentially allowing remote code execution or data corruption.

5

Is PSA support relevant for CVE-2024-45158?

Yes, in some configurations with PSA disabled, all values of bits are affected by CVE-2024-45158.

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