CVE-2021-40393 Memory corruption in Gerbv
An out-of-bounds write in Gerbv allows attackers to execute arbitrary code via a specially crafted Gerber file.
- 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-40393?
CVE-2021-40393 is a critical memory corruption vulnerability in Debian Debian Linux, published on 22 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An out-of-bounds write vulnerability exists in the RS-274X aperture macro variables handling functionality of Gerbv 2.7.0 and dev (commit b5f1eacd) and the forked version of Gerbv (commit 71493260). A specially-crafted gerber file can lead to code execution. An attacker can provide a malicious file to trigger this vulnerability.
Which versions are affected by CVE-2021-40393?
It affects 2 products.
Products include Debian Debian Linux, Gerbv Project Gerbv.
How do I fix CVE-2021-40393?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2021-40393 being exploited?
There is no known exploitation of CVE-2021-40393 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2021-40393, GHSA-w67q-2hr6-7cjf, UBUNTU-CVE-2021-40393.