CVE-2021-40403
NixOS vulnerability analysis and mitigation

Overview

An information disclosure vulnerability (CVE-2021-40403) exists in the pick-and-place rotation parsing functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.8.0. A specially-crafted pick-and-place file can exploit the missing initialization of a structure to leak memory contents (Talos Report).

Technical details

The vulnerability stems from an uninitialized PnpPartData structure in the pick-and-place file parsing functionality. When parsing the rotation field from a pick-and-place file, the sscanf function may fail if provided with an empty string or non-numeric input, leaving the rotation value uninitialized. This uninitialized value is then used in subsequent calculations, potentially exposing stack memory contents. The vulnerability has been assigned a CVSS v3.0 base score of 5.8 (Medium) with vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N (Talos Report).

Impact

An attacker able to read the resulting rendered image might be able to extract limited memory contents by analyzing the object rotation in the rendered image. This could lead to information disclosure of sensitive data from the process memory (Talos Report).

Mitigation and workarounds

The vulnerability has been addressed in various distributions. Debian has fixed these issues in version 2.7.0-2+deb11u2 for the stable distribution (bullseye) (Debian Advisory). Fedora 36 has released version 2.8.2-1.fc36 containing security fixes (Fedora Update).

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-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
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