CVE-2021-40401 Use after free in Gerbv

Critical 10.0 Published Updated

A use-after-free 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-40401?

CVE-2021-40401 is a critical use after free vulnerability in Debian Debian Linux, published on 4 Feb 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-252

Which versions are affected by CVE-2021-40401?

It affects 3 products.

Products include Debian Debian Linux, Fedoraproject Fedora, Gerbv Project Gerbv.

How do I fix CVE-2021-40401?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-40401 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-40401 exists.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-40401, GHSA-x68j-pwcm-v888, UBUNTU-CVE-2021-40401.

Is CVE-2021-40401 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free