GLSA-202105-03 : GPT fdisk: Integer underflow

medium Nessus Plugin ID 150001

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-202105-03 (GPT fdisk: Integer underflow)

It was discovered that ReadLogicalParts() function in basicmbr.cc was missing a bounds check.
Impact :

A local attacker could entice a user to insert a malicious formatted block device (USB stick or SD card for example), that, when processed with sgdisk, possibly resulting in local escalation of privileges or a Denial of Service condition.
Workaround :

There is no known workaround at this time.

Solution

All GPT fdisk users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=sys-apps/gptfdisk-1.0.6'

See Also

https://security.gentoo.org/glsa/202105-03

Plugin Details

Severity: Medium

ID: 150001

File Name: gentoo_GLSA-202105-03.nasl

Version: 1.3

Type: local

Published: 5/27/2021

Updated: 2/17/2022

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.2

Temporal Score: 5.3

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

CVSS Score Source: CVE-2021-0308

CVSS v3

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.9

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

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

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:gptfdisk, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 5/26/2021

Vulnerability Publication Date: 1/11/2021

Reference Information

CVE: CVE-2021-0308

GLSA: 202105-03