CVE-2021-42781 Memory corruption in opensc

Medium 5.3 Published Updated

Heap buffer overflow in OpenSC library allows attackers to crash applications using the library via crafted data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-42781?

CVE-2021-42781 is a medium-severity memory corruption vulnerability in Fedoraproject Fedora, published on 18 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-787, CWE-119

Which versions are affected by CVE-2021-42781?

It affects 3 products.

Products include Fedoraproject Fedora, Opensc Project Opensc, Redhat Enterprise Linux.

How do I fix CVE-2021-42781?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-42781 being exploited?

There is no known exploitation of CVE-2021-42781 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-9484, DEBIAN-CVE-2021-42781, GHSA-93j9-4rqq-x6gr, OESA-2022-1640.

Is CVE-2021-42781 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free