GLSA-202209-03 : OpenSC: Multiple Vulnerabilities

medium Nessus Plugin ID 164803

Description

The remote host is affected by the vulnerability described in GLSA-202209-03 (OpenSC: Multiple Vulnerabilities)

- A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.
(CVE-2021-42778)

- 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

All OpenSC users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=dev-libs/opensc-0.22.0

See Also

https://security.gentoo.org/glsa/202209-03

https://bugs.gentoo.org/show_bug.cgi?id=839357

Plugin Details

Severity: Medium

ID: 164803

File Name: gentoo_GLSA-202209-03.nasl

Version: 1.2

Type: local

Published: 9/7/2022

Updated: 9/7/2022

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Low

Score: 1.4

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

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

CVSS Score Source: CVE-2021-42782

CVSS v3

Risk Factor: Medium

Base Score: 5.3

Temporal Score: 4.6

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

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

Vulnerability Information

CPE: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:opensc

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 9/7/2022

Vulnerability Publication Date: 4/18/2022

Reference Information

CVE: CVE-2021-42778, CVE-2021-42779, CVE-2021-42780, CVE-2021-42781, CVE-2021-42782