CVE-2021-42778
NixOS vulnerability analysis and mitigation

Overview

A heap double free vulnerability (CVE-2021-42778) was discovered in OpenSC before version 0.22.0, specifically in the scpkcs15free_tokeninfo function. The vulnerability was identified in October 2021 and affects multiple operating systems including Red Hat Enterprise Linux and Fedora (NVD, CVE).

Technical details

The vulnerability is classified as a heap double free issue (CWE-415) with a CVSS v3.1 base score of 5.3 (MEDIUM) and vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L. The issue specifically occurs in the scpkcs15free_tokeninfo function of OpenSC, which handles token information management (NVD).

Impact

The vulnerability affects system availability, with no direct impact on confidentiality or integrity. The CVSS scoring indicates that while the vulnerability can be exploited remotely with low attack complexity, it primarily affects system availability through potential crashes or service disruptions (NVD).

Mitigation and workarounds

The vulnerability has been fixed in OpenSC version 0.22.0. Users are advised to upgrade to this version or later. For Gentoo users, the recommendation is to upgrade using the command 'emerge --ask --oneshot --verbose ">=dev-libs/opensc-0.22.0"'. The fix was implemented through a commit that modifies the handling of temporary variables (Gentoo Advisory, GitHub Commit).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management