Lucene search

K
archlinuxArchLinuxASA-202011-27
HistoryNov 26, 2020 - 12:00 a.m.

[ASA-202011-27] opensc: arbitrary code execution

2020-11-2600:00:00
security.archlinux.org
130
opensc
code execution
buffer overflow
security vulnerability
smart card

CVSS2

2.1

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:N/I:N/A:P

CVSS3

5.5

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS

0.001

Percentile

19.0%

Arch Linux Security Advisory ASA-202011-27

Severity: Medium
Date : 2020-11-26
CVE-ID : CVE-2020-26570 CVE-2020-26571 CVE-2020-26572
Package : opensc
Type : arbitrary code execution
Remote : No
Link : https://security.archlinux.org/AVG-1298

Summary

The package opensc before version 0.21.0-1 is vulnerable to arbitrary
code execution.

Resolution

Upgrade to 0.21.0-1.

pacman -Syu “opensc>=0.21.0-1”

The problems have been fixed upstream in version 0.21.0.

Workaround

None.

Description

  • CVE-2020-26570 (arbitrary code execution)

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-26571 (arbitrary code execution)

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-26572 (arbitrary code execution)

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

Impact

An attacker might be able to execute arbitrary code via crafted content
or metadata on a card.

References

https://bugs.archlinux.org/task/68195
https://github.com/OpenSC/OpenSC/releases/tag/0.21.0
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=24316
https://github.com/OpenSC/OpenSC/commit/6903aebfddc466d966c7b865fae34572bf3ed23e
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=20612
https://github.com/OpenSC/OpenSC/commit/ed55fcd2996930bf58b9bb57e9ba7b1f3a753c43
https://github.com/OpenSC/OpenSC/commit/f49162af0476723a0f72ca66c9ce6dd5bf38807d
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22967
https://github.com/OpenSC/OpenSC/commit/9d294de90d1cc66956389856e60b6944b27b4817
https://security.archlinux.org/CVE-2020-26570
https://security.archlinux.org/CVE-2020-26571
https://security.archlinux.org/CVE-2020-26572

OSVersionArchitecturePackageVersionFilename
ArchLinuxanyanyopensc< 0.21.0-1UNKNOWN

CVSS2

2.1

Attack Vector

LOCAL

Attack Complexity

LOW

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:L/AC:L/Au:N/C:N/I:N/A:P

CVSS3

5.5

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

EPSS

0.001

Percentile

19.0%