Debian DSA-5306-1 : gerbv - security update

critical Nessus Plugin ID 169342

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has a package installed that is affected by multiple vulnerabilities as referenced in the dsa-5306 advisory.

- 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. (CVE-2021-40393, CVE-2021-40394)

- 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. (CVE-2021-40401)

- An information disclosure vulnerability exists in the pick-and-place rotation parsing functionality of Gerbv 2.7.0 and dev (commit b5f1eacd), and Gerbv forked 2.8.0. A specially-crafted pick-and-place file can exploit the missing initialization of a structure to leak memory contents. An attacker can provide a malicious file to trigger this vulnerability. (CVE-2021-40403)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the gerbv packages.

For the stable distribution (bullseye), these problems have been fixed in version 2.7.0-2+deb11u2.

See Also

https://security-tracker.debian.org/tracker/CVE-2021-40401

https://security-tracker.debian.org/tracker/CVE-2021-40403

https://packages.debian.org/source/bullseye/gerbv

https://security-tracker.debian.org/tracker/source-package/gerbv

https://www.debian.org/security/2022/dsa-5306

https://security-tracker.debian.org/tracker/CVE-2021-40393

https://security-tracker.debian.org/tracker/CVE-2021-40394

Plugin Details

Severity: Critical

ID: 169342

File Name: debian_DSA-5306.nasl

Version: 1.1

Type: local

Agent: unix

Published: 12/27/2022

Updated: 9/12/2023

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.3

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2021-40394

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:gerbv, cpe:/o:debian:debian_linux:11.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 12/27/2022

Vulnerability Publication Date: 12/22/2021

Reference Information

CVE: CVE-2021-40393, CVE-2021-40394, CVE-2021-40401, CVE-2021-40403