Vulnerability · Published Jul 6, 2022 · Assigned by redhat

CVE-2021-3697

High 7.0

In plain English

A high-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)7.0High
Exploit odds (30 days)0.5%top 59.2% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A crafted JPEG image may lead the JPEG reader to underflow its data pointer, allowing user-controlled data to be written in heap. To a successful to be performed the attacker needs to perform some triage over the heap layout and craft an image with a malicious format and payload. This vulnerability can lead to data corruption and eventual code execution or secure boot circumvention. 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
Alpine:v3.20grub2.06-r13ALPINE-CVE-2021-3697
Alpine:v3.21grub2.06-r13ALPINE-CVE-2021-3697
Alpine:v3.22grub2.06-r13ALPINE-CVE-2021-3697
Alpine:v3.23grub2.06-r13ALPINE-CVE-2021-3697
Alpine:v3.24grub2.06-r13ALPINE-CVE-2021-3697
Debian:12grub22.06-3DEBIAN-CVE-2021-3697
Debian:13grub22.06-3DEBIAN-CVE-2021-3697
Debian:14grub22.06-3DEBIAN-CVE-2021-3697
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.1UBUNTU-CVE-2021-3697
Ubuntu:22.04:LTSgrub2-signed1.187.3~22.04.1USN-6355-1
Ubuntu:22.04:LTSgrub2-unsigned2.06-2ubuntu14.1UBUNTU-CVE-2021-3697
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