UBUNTU-CVE-2019-18840

Source
https://ubuntu.com/security/CVE-2019-18840
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2019/UBUNTU-CVE-2019-18840.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2019-18840
Related
Published
2019-11-09T13:15:00Z
Modified
2025-01-13T10:22:02Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:20.04:LTS / wolfssl

Package

Name
wolfssl
Purl
pkg:deb/ubuntu/wolfssl@4.2.0+dfsg-3?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.2.0+dfsg-3

Affected versions

4.*

4.1.0+dfsg-2
4.2.0+dfsg-1
4.2.0+dfsg-2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "4.2.0+dfsg-3",
            "binary_name": "libwolfssl-dev"
        },
        {
            "binary_version": "4.2.0+dfsg-3",
            "binary_name": "libwolfssl23"
        },
        {
            "binary_version": "4.2.0+dfsg-3",
            "binary_name": "libwolfssl23-dbgsym"
        }
    ]
}