portage-ng / portage / sys-apps / gptfdisk / 1.0.10-r1
portage-ng glsa
1 advisory reference sys-apps/gptfdisk · none place version 1.0.10-r1 in a vulnerable range
▸ GLSA 202105-03 GPT fdisk: Integer underflow this version unaffected normal local 2021-05-26

An integer underflow in sgdisk from GPT fdisk package might allow local attacker(s) to escalate privileges.

Announced
2021-05-26
Revised
2021-05-26
Access
local
Bugs
#768762
Advisory
https://security.gentoo.org/glsa/202105-03

Affected packages

PackageArchVulnerableUnaffected
sys-apps/gptfdisk*< 1.0.6>= 1.0.6

Background

GPT fdisk (consisting of the gdisk, cgdisk, sgdisk, and fixparts programs) is a set of text-mode partitioning tools for Linux, FreeBSD, Mac OS X, and Windows.

Description

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.

Resolution

All GPT fdisk users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/gptfdisk-1.0.6"

References