CVE-2020-8432
Description
In Das U-Boot through 2020.01, a double free has been found in the cmd/gpt.c do_rename_gpt_parts() function. Double freeing may result in a write-what-where condition, allowing an attacker to execute arbitrary code. NOTE: this vulnerablity was introduced when attempting to fix a memory leak identified by static analysis.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A double free in U-Boot's GPT command do_rename_gpt_parts() (up to 2020.01) can lead to arbitrary code execution via a write-what-where condition.
Vulnerability
A double-free vulnerability was discovered in Das U-Boot's cmd/gpt.c file, specifically in the do_rename_gpt_parts() function. The bug was introduced in commit 18030d04 ("GPT: fix memory leaks identified by Coverity") and affects U-Boot through version 2020.01. On line 702, partition_list is freed if ret is less than 0; however, if the return value is not -ENOMEM, execution proceeds to the out: label where partition_list is freed again, resulting in a double-free condition [1][2].
Exploitation
An attacker must be able to issue the gpt rename command within the U-Boot shell, which typically requires physical or serial console access or a compromised boot flow. The double-free occurs when the function fails with a return value other than -ENOMEM. This can be triggered by supplying malformed GPT partition data or inducing an error during the rename operation. The double-free may corrupt heap metadata, leading to a write-what-where primitive that can be leveraged for arbitrary code execution [1][2].
Impact
Successful exploitation allows an attacker to execute arbitrary code at the U-Boot privilege level, which often means full control over the boot process and system firmware. This could enable persistent compromise, bypass of secure boot, or loading of a malicious operating system. The impact is considered high due to the privileged context [1][2].
Mitigation
A fix was proposed in the referenced mailing list threads: remove the premature free() on line 702 and rely on the cleanup at the out: label. As of the 2020.01 release, no official patch had been merged, and users were advised to apply the suggested change manually. No CISA KEV listing is available. Users should update to a version containing the fix (e.g., a subsequent release after 2020.01) or apply the workaround [1][2].
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
20- U-Boot/U-Bootdescription
- osv-coords19 versionspkg:rpm/opensuse/u-boot&distro=openSUSE%20Leap%2015.1pkg:rpm/opensuse/u-boot&distro=openSUSE%20Leap%2015.2pkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/u-boot&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP1pkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/u-boot-rpi3&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/u-boot-rpiarm64&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2
< 2019.01-lp151.6.13.1+ 18 more
- (no CPE)range: < 2019.01-lp151.6.13.1
- (no CPE)range: < 2020.01-lp152.9.9.1
- (no CPE)range: < 2018.03-4.6.1
- (no CPE)range: < 2018.03-4.6.1
- (no CPE)range: < 2019.01-7.10.1
- (no CPE)range: < 2020.01-10.9.1
- (no CPE)range: < 2018.03-4.3.1
- (no CPE)range: < 2019.01-5.3.1
- (no CPE)range: < 2018.03-4.6.1
- (no CPE)range: < 2019.01-5.3.1
- (no CPE)range: < 2018.03-4.6.1
- (no CPE)range: < 2018.03-4.6.2
- (no CPE)range: < 2018.03-4.6.2
- (no CPE)range: < 2019.01-7.10.2
- (no CPE)range: < 2018.03-4.3.1
- (no CPE)range: < 2019.01-5.3.1
- (no CPE)range: < 2018.03-4.6.2
- (no CPE)range: < 2019.01-5.3.1
- (no CPE)range: < 2020.01-10.9.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- lists.opensuse.org/opensuse-security-announce/2020-11/msg00030.htmlmitrevendor-advisoryx_refsource_SUSE
- www.mail-archive.com/u-boot%40lists.denx.de/msg354060.htmlmitrex_refsource_MISC
- www.mail-archive.com/u-boot%40lists.denx.de/msg354114.htmlmitrex_refsource_MISC
News mentions
0No linked articles in our index yet.