CVE-2021-0308
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing...
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
Attack profile
How easy it is to exploit
- Attack vector
- Physical
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
6.8
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
CVE-2021-0308- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List No score
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
CVE-2021-0308- Updated
- 2026-11-02
EUVDEUVD-2021-2927 No score
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
EUVD-2021-2927- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-gxqw-x97w-h62r No score
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing...
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
GHSA-gxqw-x97w-h62r- Weakness
- CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-0308
6.8
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
ALPINE-CVE-2021-0308- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2021-0308
6.8
CVE-2021-0308 does not affect BellSoft software
- Record
BELL-CVE-2021-0308- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSV
6.8
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
CVE-2021-0308- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-0308
6.8
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
DEBIAN-CVE-2021-0308- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2022:7700
6.8
Red Hat Security Advisory: gdisk security update
- Record
RHSA-2022:7700- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2024:3486
6.8
Red Hat Security Advisory: gdisk security update
- Record
RHSA-2024:3486- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRLSA-2022:7700
6.8
Moderate: gdisk security update
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 Rocky Linux 8.7 Release Notes linked from the References section.
- Record
RLSA-2022:7700- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-0308
6.8
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation. Product: Android; Versions: Android-8.1, Android-9, Android-10, Android-11, Android-8.0; Android ID: A-158063095.
- Record
UBUNTU-CVE-2021-0308- CVSS 3.1
- 6.8 Medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVALSA-2022:7700 No score
Moderate: gdisk security update
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 AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2022:7700- Updated
- 2026-11-02
OSVASB-A-158063095 No score
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.
- Record
ASB-A-158063095- Updated
- 2026-11-05
OSVMGASA-2021-0073 No score
Updated gdisk package fixes security vulnerabilities
A bug that could cause segfault if GPT header claimed partition entries are oversized (CVE-2020-0256).
A bug that could cause a crash if a badly-formatted MBR disk was read (CVE-2021-0308).
The gdisk package has been updated to version 1.0.6, fixing these issues and several other bugs. See the upstream NEWS file for details.
- Record
MGASA-2021-0073- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:10816-1 No score
gptfdisk-1.0.8-1.2 on GA media
These are all security issues fixed in the gptfdisk-1.0.8-1.2 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:10816-1- Updated
- 2026-11-02
OSVUSN-5262-1 No score
gdisk vulnerabilities
The potential for an out of bounds write due to a missing bounds check was discovered to impact the sgdisk utility of GPT fdisk. Exploitation requires the use of a maliciously formatted storage device and could cause sgdisk to crash as well as possibly allow for local privilege escalation.
- Record
USN-5262-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gptfdiskAlpine:v3.12 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.13 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.14 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.15 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.16 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.17 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.18 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.19 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.20 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.21 |
before 1.0.6-r0 | 1.0.6-r0 |
Show 28 moreShow less
| Package | Affected | Fixed |
|---|---|---|
gptfdiskAlpine:v3.22 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.23 |
before 1.0.6-r0 | 1.0.6-r0 |
gptfdiskAlpine:v3.24 |
before 1.0.6-r0 | 1.0.6-r0 |
gdiskAlmaLinux:8 From an advisory covering 2 CVEs |
before 1.0.3-11.el8 | 1.0.3-11.el8 |
platform/external/gptfdiskAndroid |
8.0:0 up to 8.0:2021-01-01, plus listed versions 8.0 |
8.0:2021-01-01 |
platform/external/gptfdiskAndroid |
8.1:0 up to 8.1:2021-01-01, plus listed versions 8.1 |
8.1:2021-01-01 |
platform/external/gptfdiskAndroid |
9:0 up to 9:2021-01-01, plus listed versions 9 |
9:2021-01-01 |
platform/external/gptfdiskAndroid |
10:0 up to 10:2021-01-01, plus listed versions 10 |
10:2021-01-01 |
platform/external/gptfdiskAndroid |
11:0 up to 11:2021-01-01, plus listed versions 11 |
11:2021-01-01 |
gdiskDebian:12 |
before 1.0.6-1 | 1.0.6-1 |
gdiskDebian:13 |
before 1.0.6-1 | 1.0.6-1 |
gdiskDebian:14 |
before 1.0.6-1 | 1.0.6-1 |
gdiskDebian:9 From an advisory covering 2 CVEs |
before 1.0.1-1+deb9u1, plus listed versions 1.0.1-1 |
1.0.1-1+deb9u1 |
gdiskMageia:7 From an advisory covering 2 CVEs |
before 1.0.6-1.mga7 | 1.0.6-1.mga7 |
gdiskRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:1.0.3-11.el8 | 0:1.0.3-11.el8 |
gdisk-debuginfoRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:1.0.3-11.el8 | 0:1.0.3-11.el8 |
gdisk-debugsourceRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:1.0.3-11.el8 | 0:1.0.3-11.el8 |
gdiskRed Hat:rhel_eus:8.6::baseos From an advisory covering 2 CVEs |
before 0:1.0.3-9.el8_6.1 | 0:1.0.3-9.el8_6.1 |
gdisk-debuginfoRed Hat:rhel_eus:8.6::baseos From an advisory covering 2 CVEs |
before 0:1.0.3-9.el8_6.1 | 0:1.0.3-9.el8_6.1 |
gdisk-debugsourceRed Hat:rhel_eus:8.6::baseos From an advisory covering 2 CVEs |
before 0:1.0.3-9.el8_6.1 | 0:1.0.3-9.el8_6.1 |
gdiskRocky Linux:8 From an advisory covering 2 CVEs |
before 0:1.0.3-11.el8 | 0:1.0.3-11.el8 |
gdiskUbuntu:14.04:LTS |
All versions, plus listed versions 0.8.7-10.8.8-1build10.8.8-1ubuntu0.1 |
None known |
gdiskUbuntu:Pro:16.04:LTS |
before 1.0.1-1ubuntu0.1~esm2, plus listed versions 1.0.0-31.0.1-11.0.1-1build1 |
1.0.1-1ubuntu0.1~esm2 |
gdiskUbuntu:18.04:LTS |
All versions, plus listed versions 1.0.1-1build11.0.3-1 |
None known |
gdiskUbuntu:20.04:LTS |
All versions, plus listed versions 1.0.4-31.0.5-1 |
None known |
gdiskUbuntu:22.04:LTS |
All versions, plus listed versions 1.0.8-11.0.8-31.0.8-41.0.8-4build1 |
None known |
gdiskUbuntu:Pro:16.04:LTS From an advisory covering 2 CVEs |
before 1.0.1-1ubuntu0.1~esm2, plus listed versions 1.0.0-31.0.1-11.0.1-1build1 |
1.0.1-1ubuntu0.1~esm2 |
gptfdiskopenSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 1.0.8-1.2 | 1.0.8-1.2 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | Trinadh465/platform_external_gptfdisk_AOSP10_r33_CVE-2021-0308 | 2022-05-25 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| facts | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-0308 is a medium vulnerability (CVSS 6.8) in Google Android, published January 1, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.45%, the 39th percentile. Fixed in gptfdisk 1.0.6-r0.
References
source.android.com/security/bulletin/2021-01-01
lists.debian.org/debian-lts-announce/2021/02/msg00010.html
security.gentoo.org/glsa/202105-03
nvd.nist.gov/vuln/detail/CVE-2021-0308
github.com/advisories/GHSA-gxqw-x97w-h62r
security.alpinelinux.org/vuln/CVE-2021-0308
Show 31 moreShow less
access.redhat.com/errata/RHSA-2022:7700
access.redhat.com/security/cve/CVE-2020-0256
access.redhat.com/security/cve/CVE-2021-0308
bugzilla.redhat.com/2051939
bugzilla.redhat.com/2051943
errata.almalinux.org/8/ALSA-2022-7700.html
android.googlesource.com/platform/external/gptfdisk/+/6d369451868ce71618144c4f4bd645ae48f0d1c5
docs.bell-sw.com/security/cves/CVE-2021-0308
security-tracker.debian.org/tracker/CVE-2021-0308
advisories.mageia.org/MGASA-2021-0073.html
bugs.mageia.org/show_bug.cgi?id=28206
sourceforge.net/p/gptfdisk/code/ci/6180deb472c302c47f4d4acff8f2123d10824364/tree/NEWS
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.7_release_notes/index
bugzilla.redhat.com/show_bug.cgi?id=2051939
bugzilla.redhat.com/show_bug.cgi?id=2051943
bugzilla.redhat.com/show_bug.cgi?id=2065205
security.access.redhat.com/data/csaf/v2/advisories/2022/rhsa-2022_7700.json
cve.org/CVERecord?id=CVE-2020-0256
nvd.nist.gov/vuln/detail/CVE-2020-0256
cve.org/CVERecord?id=CVE-2021-0308
access.redhat.com/errata/RHSA-2024:3486
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_3486.json
errata.rockylinux.org/RLSA-2022:7700
ubuntu.com/security/CVE-2021-0308
sourceforge.net/p/gptfdisk/code/ci/f523bbc0c2437fe259aa3aff5e819e24101aee29
sourceforge.net/p/gptfdisk/mailman/message/37196701
ubuntu.com/security/notices/USN-5262-1
ubuntu.com/security/CVE-2020-0256
suse.com/security/cve/CVE-2020-0256
suse.com/security/cve/CVE-2021-0308