CVE-2021-0308 json
In ReadLogicalParts of basicmbr.cc, there is a possible out of bounds write due to a missing bounds check.
published 2021-01-11 5 y ago modified 2026-06-17 4 mo ago also EUVD-2021-2927
- cvss
- 6.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 39%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- gdisk Debian 14, Debian 13, Debian 12 1.0.6-1
debian advisories DEBIAN-CVE-2021-0308
- gdisk Ubuntu Pro 16.04 LTS 1.0.1-1ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2021-0308
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gdisk RHEL 8 1.0.3-11.el8
- gdisk RHEL 8.6 EUS 1.0.3-9.el8_6.1
red hat advisories RHSA-2024:3486RHSA-2022:7700
- gptfdisk openSUSE Tumbleweed 1.0.8-1.2
opensuse advisories openSUSE-SU-2024:10816-1
- gdisk AlmaLinux 8 1.0.3-11.el8
almalinux advisories ALSA-2022:7700
- gdisk Rocky Linux 8 1.0.3-11.el8
rocky linux advisories RLSA-2022:7700
- gptfdisk Alpine 3.24, Alpine 3.23, Alpine 3.22 +10 more 1.0.6-r0
alpine advisories ALPINE-CVE-2021-0308
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- gptfdisk Arch Linux 1.0.6-1
arch linux advisories AVG-1435
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-0308 updated cvss 6.8
gdisk: possible out-of-bounds-write in ReadLogicalParts of basicmbr.cc
-
Red Hat Enterprise Linux 6 gdisk Red Hat Enterprise Linux 7 gdiskaffected: no fix planned “Out of support scope”
-
Red Hat Enterprise Linux BaseOS (v. 8) gdisk 1.0.3-11.el8fixed: vendor fix RHSA-2022:7700
-
Red Hat Enterprise Linux BaseOS EUS (v.8.6) gdisk 1.0.3-9.el8_6.1fixed: vendor fix RHSA-2024:3486
-
Red Hat Enterprise Linux 9 gdisknot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.45% chance of exploitation in the next 30 days, higher than 39% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 6.8 | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.2 | AV:L/AC:L/Au:N/C:C/I:C/A:C |
Affected products
- n/a Android
Classification
- Weakness
-
- CWE-787 Out-of-bounds Write
References
-
security.gentoo.org
/glsa/202105-03
vendor-advisory, third-party-advisory
-
source.android.com
/security/bulletin/2021-01-01
vendor-advisory
-
lists.debian.org
/debian-lts-announce/2021/02/msg00010.html
mailing-list, third-party-advisory
Sources
- CVE List CVE-2021-0308
- NVD CVE-2021-0308
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.