CVE intelligence and bounded remediation
CVE-2021-40401 — Gerbv Project Gerbv security vulnerability
Critical
CVSS 10
A use-after-free vulnerability exists in the RS-274X aperture definition tokenization functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and Gerbv forked 2.7.1. A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
- Severity
- Critical
- CVSS
- 10 (3.0)
- Published
- 2022-02-04
- CISA KEV
- Not currently listed
- Ecosystem
- software/application
- Weaknesses
- CWE-252
Affected products
- gerbv_project / gerbv / 2.7.0
- gerbv_project / gerbv / 2.7.1
- fedoraproject / fedora / 36
- debian / debian_linux / 11.0
Matched remediation archetype
Use-after-free, double free, and expired resource use
This catalog composition supplies bounded fallback guidance. Explicitly reviewed curated workflows load with the complete record below.
Check exposure
- Trace ownership, references, callbacks, asynchronous tasks, and teardown paths around the affected object or resource.
- Identify reachable inputs and timing or state transitions that can release the object while references remain.
- Confirm affected builds, allocators, feature flags, architectures, and process privileges.
Remediate safely
- Apply the maintained ownership or lifetime fix and rebuild all artifacts containing the affected native code.
- Use explicit ownership, safe reference management, cancellation and join semantics, and idempotent teardown.
- Add deterministic lifetime tests plus isolated sanitizer and concurrency coverage for shutdown and error paths.
Authoritative sources
Complete CVE record and remediation plan
The detailed catalog view below loads this exact record, its source evidence, and the full seven-phase agentic change plan.