CVE-2022-38153
An issue was discovered in wolfSSL before 5.5.0 (when --enable-session-ticket is used); however, only version 5.3.0 is exploitable. Man-in-the-middle attackers or a malicious server can crash TLS 1.2 clients during a handshake. If an attacker injects a large ticket (more than 256 bytes) into a NewSessionTicket message in a TLS 1.2 handshake, and the client has a non-empty session cache, the session cache frees a pointer that points to unallocated memory, causing the client to crash with a "free(): invalid pointer" message. NOTE: It is likely that this is also exploitable during TLS 1.3 handshakes between a client and a malicious server. With TLS 1.3, it is not possible to exploit this as a man-in-the-middle.
What to do
Fixed builds are available from 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-38153 | |
| Ubuntu 26.04 | wolfssl | Under investigation | UBUNTU-CVE-2022-38153 | |
| Ubuntu 25.10 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38153 | |
| Ubuntu 24.04 | wolfssl | Under investigation | UBUNTU-CVE-2022-38153 | |
| Ubuntu 22.04 | wolfssl | Under investigation | UBUNTU-CVE-2022-38153 | |
| Ubuntu 20.04 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38153 | |
| Ubuntu 18.04 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38153 | |
| Ubuntu 16.04 | wolfssl | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2022-38153 | |
| Debian 13 | wolfssl | Fixed | 5.5.3-1 | DEBIAN-CVE-2022-38153 |
| Debian 12 | wolfssl | Fixed | 5.5.3-1 | DEBIAN-CVE-2022-38153 |
References
- https://github.com/wolfSSL/wolfssl/releases
- https://www.wolfssl.com/docs/security-vulnerabilities/
- https://github.com/wolfSSL/wolfssl/pull/5476
- https://github.com/trailofbits/tlspuffin
- http://seclists.org/fulldisclosure/2023/Jan/8
- http://packetstormsecurity.com/files/170605/wolfSSL-5.3.0-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.