CVE-2018-20340 Memory corruption in n/a

Medium 6.8 Published Updated

A malicious USB device can trigger a buffer overflow in the libu2f-host library, potentially allowing remote code execution on the host system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2018-20340?

CVE-2018-20340 is a medium-severity memory corruption vulnerability in Debian Debian Linux, published on 17 Mar 2019. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Yubico libu2f-host 1.1.6 contains unchecked buffers in devs.c, which could enable a malicious token to exploit a buffer overflow. An attacker could use this to attempt to execute malicious code using a crafted USB device masquerading as a security token on a computer where the affected library is currently in use. It is not possible to perform this attack with a genuine YubiKey.

Weakness: CWE-119

Which versions are affected by CVE-2018-20340?

It affects 2 products.

Linux distribution packages (3)
libu2f-host SUSE:Linux Enterprise Module for Basesystem 15All versions1.1.6-3.3.3
libu2f-host openSUSE:Leap 15.0All versions1.1.6-lp151.2.3.1
libu2f-host openSUSE:Leap 15.1All versions1.1.6-lp151.2.3.1

Products include Debian Debian Linux, Yubico Libu2f-Host.

How do I fix CVE-2018-20340?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-20340 being exploited?

There is no known exploitation of CVE-2018-20340 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2018-20340, DSA-4389-1, GHSA-rc58-rfcj-mcrr, SUSE-SU-2019:1340-1, UBUNTU-CVE-2018-20340, openSUSE-SU-2019:1475-1.

Is CVE-2018-20340 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free