Bug 1219337 (CVE-2024-23775)

Summary: VUL-0: CVE-2024-23775: mbedtls: buffer overflow in mbedtls_x509_set_extension()
Product: [openSUSE] openSUSE Distribution Reporter: SMASH SMASH <smash_bz>
Component: OtherAssignee: Martin Pluskal <mpluskal>
Status: NEW --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: andrea.mattiazzo, meissner
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/392472/
Whiteboard:
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-01-30 08:59:42 UTC
CVE-2024-23775 Buffer overflow in mbedtls_x509_set_extension().

When writing x509 extensions we failed to validate inputs passed in to mbedtls_x509_set_extension(), which could result in an integer overflow, causing a zero-length buffer to be allocated to hold the extension. The extension would then be copied into the buffer, causing a heap buffer overflow.

https://mbed-tls.readthedocs.io/en/latest/security-advisories/mbedtls-security-advisory-2024-01-2/


Resolution: update net-libs/mbedtls to 2.28.7 and 3.5.2.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-23775
https://bugzilla.redhat.com/show_bug.cgi?id=2261598
Comment 1 Andrea Mattiazzo 2024-01-30 09:00:16 UTC
Tracking as affected:
- openSUSE:Backports:SLE-15-SP4/mbedtls  2.28.0
- openSUSE:Backports:SLE-15-SP5/mbedtls  2.28.2
- openSUSE:Factory/mbedtls               3.5.1 
- openSUSE:Factory/mbedtls-2             2.28.6