CVE-2022-38152

An issue was discovered in wolfSSL before 5.5.0. When a TLS 1.3 client connects to a wolfSSL server and SSL_clear is called on its session, the server crashes with a segmentation fault. This occurs in the second session, which is created through TLS session resumption and reuses the initial struct WOLFSSL. If the server reuses the previous session structure (struct WOLFSSL) by calling wolfSSL_clear(WOLFSSL* ssl) on it, the next received Client Hello (that resumes the previous session) crashes the server. Note that this bug is only triggered when resuming sessions using TLS session resumption. Only servers that use wolfSSL_clear instead of the recommended SSL_free; SSL_new sequence are affected. Furthermore, wolfSSL_clear is part of wolfSSL's compatibility layer and is not enabled by default. It is not part of wolfSSL's native API.
Configurations

Configuration 1 (hide)

cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*

History

01 Mar 2023, 15:50

Type Values Removed Values Added
References (FULLDISC) http://seclists.org/fulldisclosure/2023/Jan/7 - (FULLDISC) http://seclists.org/fulldisclosure/2023/Jan/7 - Exploit, Mailing List, Third Party Advisory
References (MISC) https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ - (MISC) https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ - Third Party Advisory
References (MISC) http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html - (MISC) http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html - Exploit, Third Party Advisory

15 Feb 2023, 22:15

Type Values Removed Values Added
References
  • (MISC) https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/ -

20 Jan 2023, 19:15

Type Values Removed Values Added
References
  • (MISC) http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html -

20 Jan 2023, 05:15

Type Values Removed Values Added
References
  • (FULLDISC) http://seclists.org/fulldisclosure/2023/Jan/7 -

08 Sep 2022, 01:37

Type Values Removed Values Added
CWE CWE-754
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.5
CPE cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*
References (CONFIRM) https://www.wolfssl.com/docs/security-vulnerabilities/ - (CONFIRM) https://www.wolfssl.com/docs/security-vulnerabilities/ - Vendor Advisory
References (MISC) https://github.com/wolfSSL/wolfssl/pull/5468 - (MISC) https://github.com/wolfSSL/wolfssl/pull/5468 - Exploit, Patch, Third Party Advisory
References (MISC) https://github.com/tlspuffin/tlspuffin - (MISC) https://github.com/tlspuffin/tlspuffin - Not Applicable
References (MISC) https://github.com/wolfSSL/wolfssl/releases - (MISC) https://github.com/wolfSSL/wolfssl/releases - Release Notes, Third Party Advisory
First Time Wolfssl
Wolfssl wolfssl

31 Aug 2022, 17:15

Type Values Removed Values Added
New CVE

Information

Published : 2022-08-31 17:15

Updated : 2023-12-10 14:35


NVD link : CVE-2022-38152

Mitre link : CVE-2022-38152

CVE.ORG link : CVE-2022-38152


JSON object : View

Products Affected

wolfssl

  • wolfssl
CWE
CWE-754

Improper Check for Unusual or Exceptional Conditions