Amazon Linux 2 : opensc (ALAS-2023-2262)

medium Nessus Plugin ID 181721

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of opensc installed on the remote host is prior to 0.19.0-5. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2023-2262 advisory.

- OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Bitstring in decode_bit_string in libopensc/asn1.c. (CVE-2019-15945)

- OpenSC before 0.20.0-rc1 has an out-of-bounds access of an ASN.1 Octet string in asn1_decode_entry in libopensc/asn1.c. (CVE-2019-15946)

- An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-setcos.c has an incorrect read operation during parsing of a SETCOS file attribute. (CVE-2019-19479)

- OpenSC before 0.20.0 has a double free in coolkey_free_private_data because coolkey_add_object in libopensc/card-coolkey.c lacks a uniqueness check. (CVE-2019-20792)

- The Oberthur smart card software driver in OpenSC before 0.21.0-rc1 has a heap-based buffer overflow in sc_oberthur_read_file. (CVE-2020-26570)

- The gemsafe GPK smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in sc_pkcs15emu_gemsafeGPK_init. (CVE-2020-26571)

- The TCOS smart card software driver in OpenSC before 0.21.0-rc1 has a stack-based buffer overflow in tcos_decipher. (CVE-2020-26572)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update opensc' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2023-2262.html

https://alas.aws.amazon.com/cve/html/CVE-2019-15945.html

https://alas.aws.amazon.com/cve/html/CVE-2019-15946.html

https://alas.aws.amazon.com/cve/html/CVE-2019-19479.html

https://alas.aws.amazon.com/cve/html/CVE-2019-20792.html

https://alas.aws.amazon.com/cve/html/CVE-2020-26570.html

https://alas.aws.amazon.com/cve/html/CVE-2020-26571.html

https://alas.aws.amazon.com/cve/html/CVE-2020-26572.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Medium

ID: 181721

File Name: al2_ALAS-2023-2262.nasl

Version: 1.1

Type: local

Agent: unix

Published: 9/20/2023

Updated: 9/21/2023

Supported Sensors: Agentless Assessment, Continuous Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Medium

Base Score: 4.6

Temporal Score: 3.6

Vector: CVSS2#AV:L/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2019-20792

CVSS v3

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 6.1

Vector: CVSS:3.0/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:opensc, p-cpe:/a:amazon:linux:opensc-debuginfo

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 9/13/2023

Vulnerability Publication Date: 9/5/2019

Reference Information

CVE: CVE-2019-15945, CVE-2019-15946, CVE-2019-19479, CVE-2019-20792, CVE-2020-26570, CVE-2020-26571, CVE-2020-26572