Bug 1890958 (CVE-2020-13131) - CVE-2020-13131 yubico-piv-tool: lib/util.c does not properly check embedded length fields could result in information disclosure
Summary: CVE-2020-13131 yubico-piv-tool: lib/util.c does not properly check embedded l...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2020-13131
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1890959
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-23 12:05 UTC by Michael Kaplan
Modified: 2021-10-28 05:27 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-28 05:27:31 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Kaplan 2020-10-23 12:05:50 UTC
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.

Comment 1 Michael Kaplan 2020-10-23 12:06:10 UTC
Created yubico-piv-tool tracking bugs for this issue:

Affects: fedora-31 [bug 1890959]


Note You need to log in before you can comment on or make changes to this bug.