CVE-2021-42778 Use after free in opensc
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.
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.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-9481, DEBIAN-CVE-2021-42778, GHSA-rh37-88v6-qm47.