CVE-2022-38152

Summary

CVECVE-2022-38152
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-08-31 17:15:00 UTC
Updated2023-03-01 15:50:00 UTC
DescriptionAn 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.

Risk And Classification

Problem Types: CWE-754

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Wolfssl Wolfssl All All All All

References

ReferenceSourceLinkTags
wolfSSL Security Vulnerabilities | Documentation – wolfSSL CONFIRM www.wolfssl.com
Keeping the wolves out of wolfSSL | Trail of Bits Blog MISC blog.trailofbits.com
Fixes to better handle re-use of a WOLFSSL object via wolfSSL_clear by SparkiDev · Pull Request #5468 · wolfSSL/wolfssl · GitHub MISC github.com
wolfSSL Session Resumption Denial Of Service ≈ Packet Storm MISC packetstormsecurity.com
Releases · wolfSSL/wolfssl · GitHub MISC github.com
Full Disclosure: wolfSSL before 5.5.0: Denial-of-service with session resumption FULLDISC seclists.org
GitHub - tlspuffin/tlspuffin: A symbolic-model-guided fuzzer for TLS MISC github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 184277 Debian Security Update for wolfssl (CVE-2022-38152)
  • 502967 Alpine Linux Security Update for wolfssl
  • 505833 Alpine Linux Security Update for wolfssl
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report