Skip to content
OpenAdvisories
High · 7.5 CVE-2019-18840 EUVD-2019-8541GHSA-42mp-7xj4-8whx

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. Sp…

Published Nov 9, 2019 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 wolfssl 4.2.0+dfsg-3 —
Debian 12 wolfssl 4.2.0+dfsg-3 —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS wolfssl 4.2.0+dfsg-3 —

References