Every CVE Search/ Get API key

CVE-2021-0308

In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing...

6.8 MediumPublic exploitFix available

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

0.45%Up 0.2 points since Apr 14, 2021
90%50%10%1%

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 MediumCVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.2 HighAV: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
gptfdisk
Alpine:v3.12
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.13
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.14
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.15
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.16
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.17
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.18
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.19
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.20
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.21
before 1.0.6-r0
1.0.6-r0
Show 28 moreShow less
Affected packages
PackageAffectedFixed
gptfdisk
Alpine:v3.22
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.23
before 1.0.6-r0
1.0.6-r0
gptfdisk
Alpine:v3.24
before 1.0.6-r0
1.0.6-r0
gdisk
AlmaLinux:8
From an advisory covering 2 CVEs
before 1.0.3-11.el8
1.0.3-11.el8
platform/external/gptfdisk
Android
8.0:0 up to 8.0:2021-01-01, plus listed versions
8.0
8.0:2021-01-01
platform/external/gptfdisk
Android
8.1:0 up to 8.1:2021-01-01, plus listed versions
8.1
8.1:2021-01-01
platform/external/gptfdisk
Android
9:0 up to 9:2021-01-01, plus listed versions
9
9:2021-01-01
platform/external/gptfdisk
Android
10:0 up to 10:2021-01-01, plus listed versions
10
10:2021-01-01
platform/external/gptfdisk
Android
11:0 up to 11:2021-01-01, plus listed versions
11
11:2021-01-01
gdisk
Debian:12
before 1.0.6-1
1.0.6-1
gdisk
Debian:13
before 1.0.6-1
1.0.6-1
gdisk
Debian:14
before 1.0.6-1
1.0.6-1
gdisk
Debian: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
gdisk
Mageia:7
From an advisory covering 2 CVEs
before 1.0.6-1.mga7
1.0.6-1.mga7
gdisk
Red 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-debuginfo
Red 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-debugsource
Red 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
Red 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-debuginfo
Red 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-debugsource
Red 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
Rocky Linux:8
From an advisory covering 2 CVEs
before 0:1.0.3-11.el8
0:1.0.3-11.el8
gdisk
Ubuntu:14.04:LTS
All versions, plus listed versions
0.8.7-10.8.8-1build10.8.8-1ubuntu0.1
None known
gdisk
Ubuntu: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
gdisk
Ubuntu:18.04:LTS
All versions, plus listed versions
1.0.1-1build11.0.3-1
None known
gdisk
Ubuntu:20.04:LTS
All versions, plus listed versions
1.0.4-31.0.5-1
None known
gdisk
Ubuntu:22.04:LTS
All versions, plus listed versions
1.0.8-11.0.8-31.0.8-41.0.8-4build1
None known
gdisk
Ubuntu: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
gptfdisk
openSUSE: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.

Public exploits
SourceLinkDate
PoC in GitHubTrinadh465/platform_external_gptfdisk_AOSP10_r33_CVE-2021-03082022-05-25

History

History
RecordedChangedSources
affected
factsOSV
aliasesEUVD
first indexedCVE 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

Show 31 moreShow less
MoveEnter Open