Vulnerability · Published Aug 31, 2022 · Assigned by mitre

CVE-2022-38152

High 7.5

In plain English

A high-severity security flaw in the wolfssl package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.9% (higher than 87% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.9%top 12.9% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20wolfssl5.5.0-r0ALPINE-CVE-2022-38152
Alpine:v3.21wolfssl5.5.0-r0ALPINE-CVE-2022-38152
Alpine:v3.22wolfssl5.5.0-r0ALPINE-CVE-2022-38152
Alpine:v3.23wolfssl5.5.0-r0ALPINE-CVE-2022-38152
Alpine:v3.24wolfssl5.5.0-r0ALPINE-CVE-2022-38152
Debian:12wolfssl5.5.3-1DEBIAN-CVE-2022-38152
Debian:13wolfssl5.5.3-1DEBIAN-CVE-2022-38152
Ubuntu:22.04:LTSwolfsslno fix listedUBUNTU-CVE-2022-38152
Ubuntu:24.04:LTSwolfsslno fix listedUBUNTU-CVE-2022-38152
Ubuntu:25.10wolfsslno fix listedUBUNTU-CVE-2022-38152
Ubuntu:26.04:LTSwolfsslno fix listedUBUNTU-CVE-2022-38152
Ubuntu:26.10wolfsslno fix listedUBUNTU-CVE-2022-38152

Affected products (as reported)

VendorProductVersions
n/a n/a n/a

References