CVE-2020-13131 An issue was discovered in Yubico libykpiv before 2.1.0. lib/util.c in this library (which is included in yubico-piv-tool) does not properly check embedded length fields during device communication. A...
- Published
- Updated
- Exploit status
- No public exploit known
- Technology
- UbuntuDebian
Description
An issue was discovered in Yubico libykpiv before 2.1.0. lib/util.c in this library (which is included in yubico-piv-tool) does not properly check embedded length fields during device communication. A malicious PIV token can misreport the returned length fields during RSA key generation. This will cause stack memory to be copied into heap allocated memory that gets returned to the caller. The leaked memory could include PINs, passwords, key material, and other sensitive information depending on the integration. During further processing by the caller, this information could leak across trust boundaries. Note that RSA key generation is triggered by the host and cannot directly be triggered by the token.
Upgrade path
9 packages: 6 fixed, 3 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/yubico-piv-tool(Ubuntu 18.04) | = 1.4.2-2; = 1.4.2-2ubuntu0.1; All versions | No fix listed | No fix yet |
| ubuntu/yubico-piv-tool(Ubuntu 20.04) | = 1.7.0-1; = 2.0.0-1; = 2.0.0-2; All versions | No fix listed | No fix yet |
| ubuntu/yubico-piv-tool(Ubuntu Pro 16.04) | = 1.0.1-1; = 1.0.3-1; = 1.0.3-1ubuntu0.1~esm1; All versions | No fix listed | No fix yet |
| debian/yubico-piv-tool(Debian 12) | < 2.1.1-1 | 2.1.1-1 | Fixed |
| debian/yubico-piv-tool(Debian 13) | < 2.1.1-1 | 2.1.1-1 | Fixed |
| debian/yubico-piv-tool(Debian 14) | < 2.1.1-1 | 2.1.1-1 | Fixed |
| Yubico libykpiv | < 2.1.0 | 2.1.0 | Fixed |
| Yubico piv tool manager | < 2.0.0 | 2.0.0 | Fixed |
| Yubico yubikey smart card minidriver | <= 4.1.0.172 | after 4.1.0.172 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/yubico-piv-tool(Debian:12) | < 2.1.1-1 | 2.1.1-1 |
| debian/yubico-piv-tool(Debian:13) | < 2.1.1-1 | 2.1.1-1 |
| debian/yubico-piv-tool(Debian:14) | < 2.1.1-1 | 2.1.1-1 |
| Yubico libykpiv | < 2.1.0 | 2.1.0 |
| Yubico piv tool manager | < 2.0.0 | 2.0.0 |
| Yubico yubikey smart card minidriver | <= 4.1.0.172 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:Pro:16.04) | All versions | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:Pro:16.04) | = 1.0.1-1 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:Pro:16.04) | = 1.0.3-1 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:Pro:16.04) | = 1.0.3-1ubuntu0.1~esm1 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:18.04) | = 1.4.2-2 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:18.04) | = 1.4.2-2ubuntu0.1 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:20.04) | All versions | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:20.04) | = 1.7.0-1 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:20.04) | = 2.0.0-1 | No fix listed |
| ubuntu/yubico-piv-tool(Ubuntu:20.04) | = 2.0.0-2 | No fix listed |
References
- Debian Security Tracker CVE-2020-13131 vendor-advisory
- blog.inhq.net exploit issue-tracking third-party-advisory
- www.yubico.com issue-tracking vendor-advisory
- bugs.debian.org issue-tracking
- ubuntu.com issue-tracking
- www.cve.org issue-tracking