Skip to content
OpenAdvisories
Low · 2.9 CVE-2024-8443 EUVD-2024-49628GHSA-mgc5-p43f-72pc

Libopensc: heap buffer overflow in openpgp driver when generating key

Published Sep 10, 2024 · Updated Nov 6, 2026 · Assigned by redhat

Description

A heap-based buffer overflow vulnerability was found in the libopensc OpenPGP driver. A crafted USB device or smart card with malicious responses to the APDUs during the card enrollment process using the `pkcs15-init` tool may lead to out-of-bound rights, possibly resulting in arbitrary code execution.

Affected products

VendorProductAffectedFixed
— opensc 0.26.0 – < 0.26.0 0.26.0
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 opensc 0.25.1-2.1 —
Debian 13 opensc 0.25.1-2.1 —
Debian 12 opensc 0.23.0-0.3+deb12u2 —
Debian 11 opensc 0.21.0-1+deb11u1 DLA-4004-1
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS opensc 0.25.0~rc1-1ubuntu0.1~esm1 USN-7346-1
Ubuntu Pro 22.04 LTS opensc 0.22.0-1ubuntu2+esm1 USN-7346-1
Ubuntu Pro 20.04 LTS opensc 0.20.0-3ubuntu0.1~esm4 USN-7346-3, USN-7346-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS opensc 0.17.0-3ubuntu0.1~esm2 USN-7346-1
Ubuntu Pro 16.04 LTS opensc 0.15.0-1ubuntu1+esm2 USN-7346-1
ReleasePackageFixed inAdvisory
SLES 15 SP6 opensc 0.22.0-150600.11.3.1 SUSE-SU-2024:3444-1
SLES 15 SP5 opensc 0.22.0-150400.3.12.1 SUSE-SU-2024:3445-1
SLES 12 SP5 opensc 0.13.0-3.31.1 SUSE-SU-2024:3443-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP5 opensc 0.13.0-3.31.1 SUSE-SU-2024:3443-1
SLE Micro 6.1 opensc 0.24.0-slfo.1.1_2.1 SUSE-SU-2025:20671-1
SLE Micro 6.0 opensc 0.24.0-3.1 SUSE-SU-2025:20072-1
SLE Micro 5.5 opensc 0.22.0-150400.3.12.1 SUSE-SU-2024:3445-1
SLE Micro 5.4 opensc 0.22.0-150400.3.12.1 SUSE-SU-2024:3445-1
SLE Micro 5.3 opensc 0.22.0-150400.3.12.1 SUSE-SU-2024:3445-1
SLE Micro 5.2 opensc 0.19.0-150100.3.31.1 SUSE-SU-2024:3517-1
SLE Micro 5.1 opensc 0.19.0-150100.3.31.1 SUSE-SU-2024:3517-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed opensc 0.25.1-2.1 openSUSE-SU-2024:14382-1
openSUSE Leap 15.6 opensc 0.22.0-150600.11.3.1 SUSE-SU-2024:3444-1
openSUSE Leap 15.5 opensc 0.22.0-150400.3.12.1 SUSE-SU-2024:3445-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
openSUSE Leap Micro 5.5 opensc 0.22.0-150400.3.12.1 SUSE-SU-2024:3445-1
ReleasePackageFixed inAdvisory
Alpine v3.24 opensc 0.26.0-r0 —
Alpine v3.23 opensc 0.26.0-r0 —
Alpine v3.22 opensc 0.26.0-r0 —
Alpine v3.21 opensc 0.26.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 opensc 0.24.0-1.amzn2023.0.4 ALAS2023-2024-775

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 opensc 0.26.1-1 —
Azure Linux 2 (CBL-Mariner) opensc No fix yet —

Advisories 12

References