Vulnerability · Published Jul 20, 2023 · Assigned by canonical

CVE-2022-28736There's a use-after-free vulnerability in grub_cmd_chainloader() function

Medium 6.4

In plain English

A medium-severity security flaw in GNU GRUB from GNU Project. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.4Medium
Exploit odds (30 days)0.3%top 78.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

There's a use-after-free vulnerability in grub_cmd_chainloader() function; The chainloader command is used to boot up operating systems that doesn't support multiboot and do not have direct support from GRUB2. When executing chainloader more than once a use-after-free vulnerability is triggered. If an attacker can control the GRUB2's memory allocation pattern sensitive data may be exposed and arbitrary code execution can be achieved.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8grub2-common1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-common1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-aa641:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-aa641:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-aa64-cdboot1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-aa64-cdboot1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-aa64-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-aa64-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-ia321:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:8grub2-efi-ia32-cdboot1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:8grub2-efi-ia32-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:8grub2-efi-x641:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-x641:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-x64-cdboot1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-x64-cdboot1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-efi-x64-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-efi-x64-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-pc1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-pc1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-pc-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-pc-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:9grub2-ppc64le1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-ppc64le-modules1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-ppc64le-modules1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools-efi1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools-efi1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools-extra1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools-extra1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8grub2-tools-minimal1:2.02-123.el8_6.8.almaALSA-2022:5095
AlmaLinux:9grub2-tools-minimal1:2.06-27.el9_0.7.almaALSA-2022:5099
AlmaLinux:8shim-aa6415.6-1.el8.almaALSA-2022:5095
AlmaLinux:9shim-aa6415.6-1.el9.almaALSA-2022:5099
AlmaLinux:8shim-ia3215.6-1.el8.almaALSA-2022:5095
AlmaLinux:8shim-unsigned-x6415.6-1.el8.almaALSA-2022:5095
AlmaLinux:9shim-unsigned-x6415.6-1.el9.almaALSA-2022:5099
AlmaLinux:8shim-x6415.6-1.el8.almaALSA-2022:5095
AlmaLinux:9shim-x6415.6-1.el9.almaALSA-2022:5099
Debian:12grub22.06-3DEBIAN-CVE-2022-28736
Debian:13grub22.06-3DEBIAN-CVE-2022-28736
Debian:14grub22.06-3DEBIAN-CVE-2022-28736
Rocky Linux:8grub21:2.02-123.el8_6.8RLSA-2022:5095
Rocky Linux:8mokutil1:0.3.0-11.el8_6.1RLSA-2022:5095
Rocky Linux:9mokutil2:0.4.0-8.el9_0.1RLSA-2022:5099
Rocky Linux:8shim0:15.6-1.el8RLSA-2022:5095
Rocky Linux:9shim0:15.6-1.el9RLSA-2022:5099
Rocky Linux:9shim0:15.6-1.el9.rocky.0.1RLSA-2022:5099
Rocky Linux:8shim-unsigned-x640:15.6-1.el8RLSA-2022:5095
Ubuntu:22.04:LTSgrub2-signed1.187.3~22.04.1USN-6355-1
Ubuntu:22.04:LTSgrub2-signed1.187.3~22.04.1UBUNTU-CVE-2022-28736
Ubuntu:22.04:LTSgrub2-unsigned2.06-2ubuntu14.1UBUNTU-CVE-2022-28736
Ubuntu:22.04:LTSgrub2-unsigned2.06-2ubuntu14.1USN-6355-1
Ubuntu:22.04:LTSshim15.7-0ubuntu1USN-6355-1
Ubuntu:22.04:LTSshim-signed1.51.3USN-6355-1

Affected products (as reported)

VendorProductVersions
GNU Project GNU GRUB 0 – before 2.06-3

References