CVE-2020-15706: GRUB2 contains a race condition leading to a use-after-free vulnerability which can be triggered by redefining a function whilst the same function is already executing.

Published Jul 27, 2020
·
Updated

"grub2 contains a use-after-free vulnerability which can be triggered by redefining a function whilst the same function is already executing."

Other sources

GRUB2 contains a race condition in grubscriptfunctioncreate() leading to a use-after-free vulnerability which can be triggered by redefining a function whilst the same function is already executing, leading to arbitrary code execution and secure boot restriction bypass. This issue affects GRUB2 version 2.04 and prior versions.

Affected Software

72 affected componentsFixes available
redhat/fwupdate<0:12-6.el7_8
0:12-6.el7_8
redhat/grub2<1:2.02-0.86.el7_8
1:2.02-0.86.el7_8
redhat/shim<0:15-7.el7_9
0:15-7.el7_9
redhat/shim-signed<0:15-7.el7_8
0:15-7.el7_8
redhat/grub2<1:2.02-0.86.el7_2
1:2.02-0.86.el7_2
redhat/shim<0:15-8.el7
0:15-8.el7
redhat/shim-signed<0:15-8.el7_2
0:15-8.el7_2
redhat/grub2<1:2.02-0.86.el7
1:2.02-0.86.el7
redhat/shim-signed<0:15-8.el7_3
0:15-8.el7_3
redhat/fwupdate<0:9-10.el7_4
0:9-10.el7_4
redhat/grub2<1:2.02-0.86.el7_4
1:2.02-0.86.el7_4
redhat/shim-signed<0:15-8.el7_4
0:15-8.el7_4
redhat/fwupdate<0:12-6.el7_6
0:12-6.el7_6
redhat/grub2<1:2.02-0.86.el7_6
1:2.02-0.86.el7_6
redhat/shim-signed<0:15-8.el7_6
0:15-8.el7_6
redhat/fwupdate<0:12-6.el7_7
0:12-6.el7_7
redhat/grub2<1:2.02-0.86.el7_7
1:2.02-0.86.el7_7
redhat/shim-signed<0:15-8.el7_7
0:15-8.el7_7
redhat/fwupd<0:1.1.4-7.el8_2
0:1.1.4-7.el8_2
redhat/grub2<1:2.02-87.el8_2
1:2.02-87.el8_2
redhat/shim<0:15-14.el8_2
0:15-14.el8_2
redhat/shim-unsigned-x64<0:15-7.el8
0:15-7.el8
redhat/fwupd<0:1.1.4-2.el8_0
0:1.1.4-2.el8_0
redhat/grub2<1:2.02-87.el8_0
1:2.02-87.el8_0
redhat/shim<0:15-14.el8_0
0:15-14.el8_0
redhat/fwupd<0:1.1.4-2.el8_1
0:1.1.4-2.el8_1
redhat/grub2<1:2.02-87.el8_1
1:2.02-87.el8_1
redhat/shim<0:15-14.el8_1
0:15-14.el8_1
redhat/grub<2.06
2.06
GNU GRUB2<=2.04
redhat Enterprise Linux Atomic Host
redhat OpenShift Container Platform=4.0
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Debian Debian Linux=10.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
SUSE SUSE Linux Enterprise Server=11
SUSE SUSE Linux Enterprise Server=12
SUSE SUSE Linux Enterprise Server=15
Microsoft Windows 10
Microsoft Windows 10=1607
Microsoft Windows 10=1709
Microsoft Windows 10=1803
Microsoft Windows 10=1809
Microsoft Windows 10=1903
Microsoft Windows 10=1909
Microsoft Windows 10=2004
Microsoft Windows 8.1
Microsoft Windows RT 8.1
Microsoft Windows Server 2012
Microsoft Windows Server 2012=r2
Microsoft Windows Server 2016
Microsoft Windows Server 2016=1903
Microsoft Windows Server 2016=1909
Microsoft Windows Server 2016=2004
Microsoft Windows Server 2019
openSUSE Leap=15.1
openSUSE Leap=15.2
Canonical Ubuntu Linux=16.04
debian/grub2
2.06-3~deb11u62.06-13+deb12u12.12-92.14~git20250718.0e36779-22.14-2
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0
alpine/grub<2.06-r0
2.06-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/fwupdate to a version that resolves this vulnerability.

    Fixed in 0:12-6.el7_8
  2. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-0.86.el7_8
  3. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15-7.el7_9
  4. Upgrade

    Upgrade redhat/shim-signed to a version that resolves this vulnerability.

    Fixed in 0:15-7.el7_8
  5. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-0.86.el7_2
  6. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15-8.el7
  7. Upgrade

    Upgrade redhat/shim-signed to a version that resolves this vulnerability.

    Fixed in 0:15-8.el7_2
  8. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-0.86.el7
  9. Upgrade

    Upgrade redhat/shim-signed to a version that resolves this vulnerability.

    Fixed in 0:15-8.el7_3
  10. Upgrade

    Upgrade redhat/fwupdate to a version that resolves this vulnerability.

    Fixed in 0:9-10.el7_4
  11. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-0.86.el7_4
  12. Upgrade

    Upgrade redhat/shim-signed to a version that resolves this vulnerability.

    Fixed in 0:15-8.el7_4
  13. Upgrade

    Upgrade redhat/fwupdate to a version that resolves this vulnerability.

    Fixed in 0:12-6.el7_6
  14. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-0.86.el7_6
  15. Upgrade

    Upgrade redhat/shim-signed to a version that resolves this vulnerability.

    Fixed in 0:15-8.el7_6
  16. Upgrade

    Upgrade redhat/fwupdate to a version that resolves this vulnerability.

    Fixed in 0:12-6.el7_7
  17. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-0.86.el7_7
  18. Upgrade

    Upgrade redhat/shim-signed to a version that resolves this vulnerability.

    Fixed in 0:15-8.el7_7
  19. Upgrade

    Upgrade redhat/fwupd to a version that resolves this vulnerability.

    Fixed in 0:1.1.4-7.el8_2
  20. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-87.el8_2
  21. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15-14.el8_2
  22. Upgrade

    Upgrade redhat/shim-unsigned-x64 to a version that resolves this vulnerability.

    Fixed in 0:15-7.el8
  23. Upgrade

    Upgrade redhat/fwupd to a version that resolves this vulnerability.

    Fixed in 0:1.1.4-2.el8_0
  24. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-87.el8_0
  25. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15-14.el8_0
  26. Upgrade

    Upgrade redhat/fwupd to a version that resolves this vulnerability.

    Fixed in 0:1.1.4-2.el8_1
  27. Upgrade

    Upgrade redhat/grub2 to a version that resolves this vulnerability.

    Fixed in 1:2.02-87.el8_1
  28. Upgrade

    Upgrade redhat/shim to a version that resolves this vulnerability.

    Fixed in 0:15-14.el8_1
  29. Upgrade

    Upgrade redhat/grub to a version that resolves this vulnerability.

    Fixed in 2.06
  30. Upgrade

    Upgrade debian/grub2 to a version that resolves this vulnerability.

    Fixed in 2.06-3~deb11u6Fixed in 2.06-13+deb12u1Fixed in 2.12-9Fixed in 2.14~git20250718.0e36779-2Fixed in 2.14-2
  31. Upgrade

    Upgrade alpine/grub to a version that resolves this vulnerability.

    Fixed in 2.06-r0

Event History

Jul 27, 2020
Data Sourced
08:48 PM
DescriptionSeverityAffected Software
Jul 29, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
12:00 AM
Remedy
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Updated
via Ubuntu·12:00 AM
DescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Data Sourced
05:00 PM
Weakness
CVE Published
via MITRE·05:45 PM
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software
Feb 16, 2021
Data Sourced
via Red Hat·07:36 PM
DescriptionSeverityAffected Software
Nov 16, 2022
Data Sourced
via NVD·03:58 AM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
03:58 AM
Affected Software
Nov 21, 2024
Updated
via NVD·05:06 AM
RemedyAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2020-15706?

CVE-2020-15706 is rated as a medium severity vulnerability due to the potential for exploitation leading to use-after-free conditions.

2

How do I fix CVE-2020-15706?

To remediate CVE-2020-15706, update to the patched versions of grub2, shim, and other affected packages as specified by your Linux distribution.

3

Which affected software versions are impacted by CVE-2020-15706?

CVE-2020-15706 impacts several versions of grub2, fwupdate, shim, and shim-signed on Red Hat and other Linux distributions.

4

What type of vulnerability is CVE-2020-15706?

CVE-2020-15706 is a use-after-free vulnerability caused by a race condition in the grub_script_function_create() function.

5

Who is affected by CVE-2020-15706?

Users of affected versions of grub2 and related packages on Red Hat and other Linux distributions are at risk from CVE-2020-15706.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203