Vulnerability · Published Jul 6, 2022 · Assigned by redhat

CVE-2021-3695

Medium 4.5

In plain English

A medium-severity out-of-bounds write in grub2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)4.5Medium
Exploit odds (30 days)0.5%top 58.8% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A crafted 16-bit grayscale PNG image may lead to a out-of-bounds write in the heap area. An attacker may take advantage of that to cause heap data corruption or eventually arbitrary code execution and circumvent secure boot protections. This issue has a high complexity to be exploited as an attacker needs to perform some triage over the heap layout to achieve signifcant results, also the values written into the memory are repeated three times in a row making difficult to produce valid payloads. This flaw affects grub2 versions prior grub-2.12.

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-2021-3695
Debian:13grub22.06-3DEBIAN-CVE-2021-3695
Debian:14grub22.06-3DEBIAN-CVE-2021-3695
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-2021-3695
Ubuntu:22.04:LTSgrub2-unsigned2.06-2ubuntu14.1UBUNTU-CVE-2021-3695
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
n/a grub2 grub-2.06

Weakness: CWE-787

References