Vulnerability Name:

CVE-2019-16058 (CCN-166646)

Assigned:2019-08-26
Published:2019-08-26
Updated:2019-09-12
Summary:An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
CVSS v3 Severity:7.5 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)
6.5 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): High
9.8 Critical (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:5.0 Medium (CVSS v2 Vector: AV:N/AC:L/Au:N/C:N/I:N/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): None
Availibility (A): Partial
10.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-119
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2019-16058

Source: MLIST
Type: UNKNOWN
[oss-security] 20190911 pam_p11 0.3.1 released

Source: XF
Type: UNKNOWN
opensc-cve201916058-bo(166646)

Source: CCN
Type: OpenSC GIT Repository
Use EVP_PKEY_size() to allocate correct size of signature buffer. (#18)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/OpenSC/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c

Vulnerable Configuration:Configuration 1:
  • cpe:/a:opensc_project:opensc:0.2.0:*:*:*:*:*:*:*
  • OR cpe:/a:opensc_project:opensc:0.3.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:113088
    P
    pam_p11-0.3.1-1.2 on GA media (Moderate)
    2022-01-17
    oval:org.opensuse.security:def:106525
    P
    pam_p11-0.3.1-1.2 on GA media (Moderate)
    2021-10-01
    oval:com.ubuntu.disco:def:2019160580000000
    V
    CVE-2019-16058 on Ubuntu 19.04 (disco) - untriaged.
    2019-09-06
    oval:com.ubuntu.bionic:def:2019160580000000
    V
    CVE-2019-16058 on Ubuntu 18.04 LTS (bionic) - untriaged.
    2019-09-06
    oval:com.ubuntu.xenial:def:2019160580000000
    V
    CVE-2019-16058 on Ubuntu 16.04 LTS (xenial) - untriaged.
    2019-09-06
    BACK
    opensc_project opensc 0.2.0
    opensc_project opensc 0.3.0