GPT fdisk: Integer underflow An integer underflow in sgdisk from GPT fdisk package might allow local attacker(s) to escalate privileges. gptfdisk 2021-05-26 2021-05-26 768762 local 1.0.6 1.0.6

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.

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

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.

There is no known workaround at this time.

All GPT fdisk users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=sys-apps/gptfdisk-1.0.6"
CVE-2021-0308 whissi whissi