Use-after-free in Gerbv and Gerbv forked - CVE-2021-40401

 

Use-after-free in Gerbv and Gerbv forked - CVE-2021-40401

Published: February 7, 2022


Vulnerability identifier: #VU60335
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-40401
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a use-after-free error in the RS-274X aperture definition tokenization functionality. A remote attacker can send a specially crafted gerber file and execute arbitrary code on the system.

Successful exploitation of the vulnerability may allow an attacker to compromise vulnerable system.


Affected software

Gerbv
Gerbv forked
Debian Linux
Fedora
gerbv (Debian package)
gerbv

How to mitigate CVE-2021-40401

Install updates from vendor's website.

Gerbv - update to 2.7.2
Gerbv forked - update to 2.7.2
gerbv (Debian package) - update to 2.7.0-2+deb11u2
gerbv - update to 2.9.2-1.fc36

External References

Related Security Bulletins