PT-2022-24244 · Wolfssl+2 · Wolfssl+2
Max
·
Published
2022-08-31
·
Updated
2023-03-01
·
CVE-2022-38152
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
wolfSSL versions prior to 5.5.0
Description
An issue was discovered in wolfSSL when a TLS 1.3 client connects to a wolfSSL server and
SSL clear is called on its session, causing the server to crash with a segmentation fault. This occurs in the second session, created through TLS session resumption, which reuses the initial struct WOLFSSL. The server crashes when it reuses the previous session structure by calling wolfSSL clear(WOLFSSL* ssl) on it, and then receives a Client Hello that resumes the previous session. This bug is only triggered when resuming sessions using TLS session resumption and affects servers that use wolfSSL clear instead of the recommended SSL free; SSL new sequence. wolfSSL clear is part of wolfSSL's compatibility layer and is not enabled by default.Recommendations
For versions prior to 5.5.0, consider using the recommended
SSL free; SSL new sequence instead of wolfSSL clear to avoid the issue. As a temporary workaround, avoid reusing the previous session structure by calling wolfSSL clear(WOLFSSL* ssl) on it, and instead use the recommended sequence to create a new session. Update to version 5.5.0 or later to resolve the issue.Exploit
Fix
Improper Check for Exceptional Conditions
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Alt Linux
Debian
Wolfssl