CVE-2021-42779 Use after free in opensc

Medium 5.3 Published Updated

A heap use-after-free in OpenSC allows attackers to potentially execute arbitrary code or cause a denial of service 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-42779?

CVE-2021-42779 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 use after free issue was found in Opensc before version 0.22.0 in sc_file_valid.

Weakness: CWE-416

Which versions are affected by CVE-2021-42779?

It affects 3 products.

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

How do I fix CVE-2021-42779?

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-42779 being exploited?

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

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-9482, DEBIAN-CVE-2021-42779, GHSA-rcjw-9639-853h, UBUNTU-CVE-2021-42779.

Is CVE-2021-42779 in your software?

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

Check your SBOMs for free