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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | wolfssl | Fix pending | UBUNTU-CVE-2022-38152 | |
| Ubuntu 26.04 | wolfssl | Under investigation | UBUNTU-CVE-2022-38152 | |
| Ubuntu 25.10 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38152 | |
| Ubuntu 24.04 | wolfssl | Under investigation | UBUNTU-CVE-2022-38152 | |
| Ubuntu 22.04 | wolfssl | Under investigation | UBUNTU-CVE-2022-38152 | |
| Ubuntu 20.04 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38152 | |
| Ubuntu 18.04 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38152 | |
| Ubuntu 16.04 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38152 | |
| Debian 13 | wolfssl | Fixed | 5.5.3-1 | DEBIAN-CVE-2022-38152 |
| Debian 12 | wolfssl | Fixed | 5.5.3-1 | DEBIAN-CVE-2022-38152 |
| Alpine Linux 3.24 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.23 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.22 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.21 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.20 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.19 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.18 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
| Alpine Linux 3.17 | wolfssl | Fixed | 5.5.0-r0 | ALPINE-CVE-2022-38152 |
References
- https://github.com/wolfSSL/wolfssl/releases
- https://www.wolfssl.com/docs/security-vulnerabilities/
- https://github.com/wolfSSL/wolfssl/pull/5468
- https://github.com/tlspuffin/tlspuffin
- http://seclists.org/fulldisclosure/2023/Jan/7
- http://packetstormsecurity.com/files/170604/wolfSSL-Session-Resumption-Denial-Of-Service.html
- https://blog.trailofbits.com/2023/01/12/wolfssl-vulnerabilities-tlspuffin-fuzzing-ssh/
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.