cve.bz

CVE-2020-26571 Out-of-bounds Write

5.5 mediumEPSS 0.4%

Medium (5.5). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-26571 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-26571?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-26571?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-26571 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
opensc_project:openscthrough 0.20.0
debian:debian_linux9.0
fedoraproject:fedora33

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9opensc0.16.0-3+deb9u2DLA-2832-1
Debian12, 13, 14opensc0.21.0-1DEBIAN-CVE-2020-26571
UbuntuPro:16.04:LTSopensc0.15.0-1ubuntu1+esm1UBUNTU-CVE-2020-26571 USN-5281-1
UbuntuPro:18.04:LTSopensc0.17.0-3ubuntu0.1~esm1UBUNTU-CVE-2020-26571 USN-5281-1
UbuntuPro:20.04:LTSopensc0.20.0-3ubuntu0.1~esm1UBUNTU-CVE-2020-26571 USN-5281-1
Red Hatenterprise_linux:8::baseosopensc, opensc-debuginfo, opensc-debugsource0:0.20.0-4.el8RHSA-2021:1600
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moreopensc0.18.0-150000.3.23.1SUSE-SU-2022:1041-1
SUSELinux Enterprise Module for Basesystem 15 SP2opensc0.19.0-3.7.1SUSE-SU-2021:1168-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5opensc0.13.0-3.11.1SUSE-SU-2021:0998-1
openSUSELeap 15.2opensc0.19.0-lp152.3.3.1openSUSE-SU-2021:0565-1
openSUSETumbleweedopensc0.21.0-2.2openSUSE-SU-2024:11123-1
AlmaLinux8opensc0.20.0-4.el8ALSA-2021:1600
Rocky Linux8opensc0:0.20.0-4.el8RLSA-2021:1600
Alpinev3.12opensc0.20.0-r2ALPINE-CVE-2020-26571
Alpinev3.13, v3.14, v3.15 and 9 moreopensc0.21.0-r0ALPINE-CVE-2020-26571
Azure Linux2opensc0.22.0-1AZL-6773

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's mitigation

This flaw can be mitigated in cases where you can use opensc without the gemsafeGPK driver enabled. In such cases, the vulnerable driver can be disabled by specifying them in /etc/opensc.conf card_drivers field in allowlist fashion.

One such example:

```

app default {

card_drivers = cac, cac1, PIV-II;

}

```

This would only enable the cac, cac1, and PIV-II smart card drivers, and all others would be disabled, including the gemsafeGPK driver. With the gemsafeGPK driver disabled, this flaw is mitigated. It is important to list all drivers that you need in the card_drivers field so that they are not disabled too.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8opensc-0:0.20.0-4.el8Fixed 2021-05-18RHSA-2021:1600
Red Hat Enterprise Linux 7openscOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-26571.

References

Check your stackJSON