CVE-2019-18840 In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data while handshaking. Specifically, there is a one-byte heap-based buffer overflow in...
HighCVSS 7.5
EPSS 2.0%
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data while handshaking. Specifically, there is a one-byte heap-based buffer overflow inside the DecodedCert structure in GetName in wolfcrypt/src/asn.c because the domain name location index is mishandled. Because a pointer is overwritten, there is an invalid free.
Upgrade path
4 packages: 4 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/wolfssl(Debian 12) | < 4.2.0+dfsg-3 | 4.2.0+dfsg-3 | Fixed |
| debian/wolfssl(Debian 13) | < 4.2.0+dfsg-3 | 4.2.0+dfsg-3 | Fixed |
| ubuntu/wolfssl(Ubuntu 20.04) | < 4.2.0+dfsg-3; = 4.1.0+dfsg-2; = 4.2.0+dfsg-1; = 4.2.0+dfsg-2 | 4.2.0+dfsg-3 | Fixed |
| wolfSSL | >= 4.1.0, <= 4.2.0c | after 4.2.0c | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/wolfssl(Debian:12) | < 4.2.0+dfsg-3 | 4.2.0+dfsg-3 |
| debian/wolfssl(Debian:13) | < 4.2.0+dfsg-3 | 4.2.0+dfsg-3 |
| wolfSSL | >= 4.1.0, <= 4.2.0c | No fix listed |
| ubuntu/wolfssl(Ubuntu:20.04) | < 4.2.0+dfsg-3 | 4.2.0+dfsg-3 |
| ubuntu/wolfssl(Ubuntu:20.04) | = 4.1.0+dfsg-2 | No fix listed |
| ubuntu/wolfssl(Ubuntu:20.04) | = 4.2.0+dfsg-1 | No fix listed |
| ubuntu/wolfssl(Ubuntu:20.04) | = 4.2.0+dfsg-2 | No fix listed |
References
- Debian Security Tracker CVE-2019-18840 vendor-advisory
- github.com exploit issue-tracking third-party-advisory
- ubuntu.com issue-tracking
- www.cve.org issue-tracking