CVEfocus › CVE database › CVE-2022-38152

CVE-2022-38152

CVSS 7.5 HighEPSS 2.0% (higher than 82% of CVEs)Published 2022-08-31Updated 2024-08-03Assigner: mitre

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.

What to do

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

10Fixed
1Fix pending
3Under investigation
4Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10wolfsslFix pendingUBUNTU-CVE-2022-38152
Ubuntu 26.04wolfsslUnder investigationUBUNTU-CVE-2022-38152
Ubuntu 25.10wolfsslWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-38152
Ubuntu 24.04wolfsslUnder investigationUBUNTU-CVE-2022-38152
Ubuntu 22.04wolfsslUnder investigationUBUNTU-CVE-2022-38152
Ubuntu 20.04wolfsslWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-38152
Ubuntu 18.04wolfsslWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-38152
Ubuntu 16.04wolfsslWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-38152
Debian 13wolfsslFixed5.5.3-1DEBIAN-CVE-2022-38152
Debian 12wolfsslFixed5.5.3-1DEBIAN-CVE-2022-38152
Alpine Linux 3.24wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.23wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.22wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.21wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.20wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.19wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.18wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152
Alpine Linux 3.17wolfsslFixed5.5.0-r0ALPINE-CVE-2022-38152

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.