From 313d40fdb732db9d89ce041e3099d8b91c857d0a Mon Sep 17 00:00:00 2001 From: Thomas Deutschmann Date: Wed, 26 May 2021 09:57:23 +0200 Subject: [PATCH] [ GLSA 202105-03 ] GPT fdisk: Integer underflow Signed-off-by: Thomas Deutschmann --- glsa-202105-03.xml | 54 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 glsa-202105-03.xml diff --git a/glsa-202105-03.xml b/glsa-202105-03.xml new file mode 100644 index 0000000000000..f866dd0624013 --- /dev/null +++ b/glsa-202105-03.xml @@ -0,0 +1,54 @@ + + + + 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 +