SUSE SLES15 Security Update : opensc (SUSE-SU-2022:1041-1)

medium Nessus Plugin ID 159349

Language:

Synopsis

The remote SUSE host is missing one or more security updates.

Description

The remote SUSE Linux SLES15 / SLES_SAP15 host has a package installed that is affected by multiple vulnerabilities as referenced in the SUSE-SU-2022:1041-1 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)

- An issue was discovered in OpenSC through 0.19.0 and 0.20.x through 0.20.0-rc3. libopensc/card-cac1.c mishandles buffer limits for CAC certificates. (CVE-2019-19481)

- 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)

- sc_context_create in ctx.c in libopensc in OpenSC 0.19.0 has a memory leak, as demonstrated by a call from eidenv. (CVE-2019-6502)

- 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)

- A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid. (CVE-2021-42779)

- A use after return issue was found in Opensc before version 0.22.0 in insert_pin function that could potentially crash programs using the library. (CVE-2021-42780)

- Heap buffer overflow issues were found in Opensc before version 0.22.0 in pkcs15-oberthur.c that could potentially crash programs using the library. (CVE-2021-42781)

- Stack buffer overflow issues were found in Opensc before version 0.22.0 in various places that could potentially crash programs using the library. (CVE-2021-42782)

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

Solution

Update the affected opensc package.

See Also

https://bugzilla.suse.com/1114649

https://bugzilla.suse.com/1122756

https://bugzilla.suse.com/1149746

https://bugzilla.suse.com/1149747

https://bugzilla.suse.com/1158256

https://bugzilla.suse.com/1158305

https://bugzilla.suse.com/1170809

https://bugzilla.suse.com/1177364

https://bugzilla.suse.com/1177378

https://bugzilla.suse.com/1177380

https://bugzilla.suse.com/1191957

https://bugzilla.suse.com/1191992

https://bugzilla.suse.com/1192000

https://bugzilla.suse.com/1192005

https://www.suse.com/security/cve/CVE-2019-15945

https://www.suse.com/security/cve/CVE-2019-15946

https://www.suse.com/security/cve/CVE-2019-19479

https://www.suse.com/security/cve/CVE-2019-19481

https://www.suse.com/security/cve/CVE-2019-20792

https://www.suse.com/security/cve/CVE-2019-6502

https://www.suse.com/security/cve/CVE-2020-26570

https://www.suse.com/security/cve/CVE-2020-26571

https://www.suse.com/security/cve/CVE-2020-26572

https://www.suse.com/security/cve/CVE-2021-42779

https://www.suse.com/security/cve/CVE-2021-42780

https://www.suse.com/security/cve/CVE-2021-42781

https://www.suse.com/security/cve/CVE-2021-42782

http://www.nessus.org/u?c2f28079

Plugin Details

Severity: Medium

ID: 159349

File Name: suse_SU-2022-1041-1.nasl

Version: 1.5

Type: local

Agent: unix

Published: 3/30/2022

Updated: 7/13/2023

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Frictionless Assessment Azure, 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: p-cpe:/a:novell:suse_linux:opensc, cpe:/o:novell:suse_linux:15

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/30/2022

Vulnerability Publication Date: 1/22/2019

Reference Information

CVE: CVE-2019-15945, CVE-2019-15946, CVE-2019-19479, CVE-2019-19481, CVE-2019-20792, CVE-2019-6502, CVE-2020-26570, CVE-2020-26571, CVE-2020-26572, CVE-2021-42779, CVE-2021-42780, CVE-2021-42781, CVE-2021-42782

SuSE: SUSE-SU-2022:1041-1