CVE Vulnerabilities

CVE-2020-13132

Release of Invalid Pointer or Reference

Published: Jul 09, 2020 | Modified: Jul 21, 2021
CVSS 3.x
4.6
MEDIUM
Source:
NVD
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
2.1 LOW
AV:L/AC:L/Au:N/C:N/I:N/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

An issue was discovered in Yubico libykpiv before 2.1.0. An attacker can trigger an incorrect free() in the ykpiv_util_generate_key() function in lib/util.c through incorrect error handling code. This could be used to cause a denial of service attack.

Weakness

The product attempts to return a memory resource to the system, but it calls the wrong release function or calls the appropriate release function incorrectly.

Affected Software

Name Vendor Start Version End Version
Libykpiv Yubico * 2.1.0 (excluding)
Yubico-piv-tool Ubuntu bionic *
Yubico-piv-tool Ubuntu eoan *
Yubico-piv-tool Ubuntu groovy *
Yubico-piv-tool Ubuntu trusty *
Yubico-piv-tool Ubuntu xenial *

Extended Description

This weakness can take several forms, such as:

Potential Mitigations

  • Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
  • For example, glibc in Linux provides protection against free of invalid pointers.

References