CVE-2021-42779
published 2022-04-18CVE-2021-42779: A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
PriorityP427medium5.3CVSS 3.1
AVNACLPRNUINSUCNINAL
EPSS
2.05%
79.2th percentile
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | opensc | < opensc 0.22.0-1 (bookworm) | opensc 0.22.0-1 (bookworm) |
| fedoraproject | fedora | — | — |
| msrc | cbl2_opensc_0.22.0-1_on_cbl_mariner_2.0 | — | — |
| opensc_project | opensc | < 0.22.0 | 0.22.0 |
| opensc_project | opensc | — | — |
| opensc_project | opensc | >= 0 < 0.21.0-1+deb11u1 | 0.21.0-1+deb11u1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| opensc_project | opensc | >= 0 < 0.22.0-1 | 0.22.0-1 |
| redhat | enterprise_linux | — | — |
| redhat | enterprise_linux | — | — |
CVSS provenance
nvdv3.15.3MEDIUMCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvdv2.05.0MEDIUMAV:N/AC:L/Au:N/C:N/I:N/A:P
osv5.3MEDIUM
vendor_debian5.3MEDIUM
vendor_msrc5.3MEDIUM
vendor_redhat5.3MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
vendor_msrc·2022-04-12·CVSS 5.3
CVE-2021-42779 [MEDIUM] CWE-416 A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
redhat: redhat
Customer Action Required: Yes
Remediation: CBL-Mariner
Red Hat
opensc: Heap use after free in sc_file_valid
vendor_redhat·2021-02-22·CVSS 5.3
CVE-2021-42779 [MEDIUM] CWE-416 opensc: Heap use after free in sc_file_valid
opensc: Heap use after free in sc_file_valid
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
Package: opensc (Red Hat Enterprise Linux 7) - Out of support scope
Package: opensc (Red Hat Enterprise Linux 8) - Fix deferred
Package: opensc (Red Hat Enterprise Linux 9) - Not affected
Debian
CVE-2021-42779: opensc - A heap use after free issue was found in Opensc before version 0.22.0 in sc_file...
vendor_debian·2021·CVSS 5.3
CVE-2021-42779 [MEDIUM] CVE-2021-42779: opensc - A heap use after free issue was found in Opensc before version 0.22.0 in sc_file...
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
Scope: local
bookworm: resolved (fixed in 0.22.0-1)
bullseye: resolved (fixed in 0.21.0-1+deb11u1)
forky: resolved (fixed in 0.22.0-1)
sid: resolved (fixed in 0.22.0-1)
trixie: resolved (fixed in 0.22.0-1)
GHSA
GHSA-rcjw-9639-853h: A heap use after free issue was found in Opensc before version 0
ghsa_unreviewed·2022-04-19
CVE-2021-42779 [MEDIUM] CWE-416 GHSA-rcjw-9639-853h: A heap use after free issue was found in Opensc before version 0
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
OSV
CVE-2021-42779: A heap use after free issue was found in Opensc before version 0
osv·2022-04-18·CVSS 5.3
CVE-2021-42779 [MEDIUM] CVE-2021-42779: A heap use after free issue was found in Opensc before version 0
A heap use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28843https://bugzilla.redhat.com/show_bug.cgi?id=2016086https://github.com/OpenSC/OpenSC/commit/1db88374https://lists.debian.org/debian-lts-announce/2023/06/msg00025.htmlhttps://security.gentoo.org/glsa/202209-03https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=28843https://bugzilla.redhat.com/show_bug.cgi?id=2016086https://github.com/OpenSC/OpenSC/commit/1db88374https://lists.debian.org/debian-lts-announce/2023/06/msg00025.htmlhttps://lists.debian.org/debian-lts-announce/2024/12/msg00026.htmlhttps://security.gentoo.org/glsa/202209-03
2022-04-18
Published