CVE Vulnerabilities

CVE-2021-40401

Unchecked Return Value

Published: Feb 04, 2022 | Modified: Nov 21, 2024
CVSS 3.x
8.6
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CVSS 2.x
6.8 MEDIUM
AV:N/AC:M/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.

Affected Software

NameVendorStart VersionEnd Version
GerbvGerbv_project2.7.0 (including)2.7.0 (including)
GerbvGerbv_project2.7.1-forked_dev (including)2.7.1-forked_dev (including)
GerbvUbuntubionic*
GerbvUbuntuesm-apps/bionic*
GerbvUbuntuesm-apps/focal*
GerbvUbuntuesm-apps/jammy*
GerbvUbuntuesm-apps/xenial*
GerbvUbuntufocal*
GerbvUbuntuimpish*
GerbvUbuntujammy*
GerbvUbuntutrusty*
GerbvUbuntutrusty/esm*
GerbvUbuntuxenial*

Potential Mitigations

References