CVE-2021-42779
NixOS vulnerability analysis and mitigation

Overview

A heap use after free issue was discovered in OpenSC before version 0.22.0 in scfilevalid function. The vulnerability was assigned CVE-2021-42779 and was reported through the OSS-Fuzz project (OSS Fuzz Issue). The issue was later fixed in OpenSC version 0.22.0 (OpenSC Commit).

Technical details

The vulnerability is classified as a heap use-after-free issue (CWE-416) affecting the scfilevalid function in OpenSC. The severity of this vulnerability has been rated as MEDIUM with a CVSS v3.1 Base Score of 5.3 (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) (NVD Database).

Impact

The vulnerability could potentially lead to application crashes when exploited. This affects the stability of applications using the OpenSC library (Debian Advisory).

Mitigation and workarounds

The vulnerability has been fixed in OpenSC version 0.22.0. Users are advised to upgrade to this version or later. Various Linux distributions have also released security updates to address this vulnerability, including Debian with version 0.21.0-1+deb11u1 and Gentoo with version 0.22.0 (Gentoo Advisory, Debian Advisory).

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