CVE-2021-42778 Use after free in opensc

Medium 5.3 Published Updated

A heap double free in OpenSC allows attackers to cause denial of service or potentially execute arbitrary code via crafted smart card 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-42778?

CVE-2021-42778 is a medium-severity use after free 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

A heap double free issue was found in Opensc before version 0.22.0 in sc_pkcs15_free_tokeninfo.

Weakness: CWE-415, CWE-672

Which versions are affected by CVE-2021-42778?

It affects 3 products.

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

How do I fix CVE-2021-42778?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-42778 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-9481, DEBIAN-CVE-2021-42778, GHSA-rh37-88v6-qm47.

Is CVE-2021-42778 in your software?

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

Check your SBOMs for free