# CVE-2021-0308: gdisk: The gdisk packages provide the gdisk partitioning utility for GUID Partition Table (GPT) disks

CVE-2021-0308 is fixed in gdisk on 1 platform, first by RHSA-2022:7700, released November 8, 2022. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2021-0308
- Priority: Routine
- CVSS: 6.8 (Moderate)
- EPSS: 0.0045
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Nov 8, 2022

## Description

The gdisk packages provide the gdisk partitioning utility for GUID Partition Table (GPT) disks. The utility features a command-line interface similar to fdisk, direct manipulation of partition table structures, recovery tools to deal with corrupt partition tables, and the ability to convert Master Boot Record (MBR) disks to the GPT format.  Security Fix(es):  * gdisk: possible out-of-bounds-write in LoadPartitionTable of gpt.cc (CVE-2020-0256)  * gdisk: possible out-of-bounds-write in ReadLogicalParts of basicmbr.cc (CVE-2021-0308)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.  Additional Changes:  For detailed information on changes in this release, see the Red Hat Enterprise Linux 8.7 Release Notes linked from the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | gdisk RHEL 8 | 0:1.0.3-11.el8 | [RHSA-2022:7700](https://patchblox.com/security/data/fix/linux/rhsa-2022-7700.md) | Nov 8, 2022 |
| Linux | gdisk almalinux 8 | 1.0.3-11.el8 | [ALSA-2022:7700](https://patchblox.com/security/data/fix/linux/alsa-2022-7700.md) | Nov 8, 2022 |
| Linux | gdisk ol 8 | 0:1.0.3-11.el8 | [ELSA-2022-7700](https://patchblox.com/security/data/fix/linux/elsa-2022-7700.md) | Nov 15, 2022 |
| Linux | gdisk rocky 8 | 0:1.0.3-11.el8 | [RLSA-2022:7700](https://patchblox.com/security/data/fix/linux/rlsa-2022-7700.md) | Nov 8, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
