CVE-2021-3695
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | grub2-signed | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | grub2-unsigned | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | grub2-signed | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | grub2-unsigned | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | grub2-signed | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | grub2-unsigned | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | grub2-signed | Fixed | 1.187.3~22.04.1 | UBUNTU-CVE-2021-3695 |
| Ubuntu 22.04 | grub2-unsigned | Fixed | 2.06-2ubuntu14.1 | UBUNTU-CVE-2021-3695 |
| Ubuntu 20.04 | grub2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 20.04 | grub2-signed | Fixed | 1.187.3~20.04.1 | UBUNTU-CVE-2021-3695 |
| Ubuntu 20.04 | grub2-unsigned | Fixed | 2.06-2ubuntu14.1 | UBUNTU-CVE-2021-3695 |
| Ubuntu 18.04 | grub2 | Fix pending | ||
| Ubuntu 18.04 | grub2-signed | Fixed | 1.187.3~18.04.1 | UBUNTU-CVE-2021-3695 |
| Ubuntu 18.04 | grub2-unsigned | Fixed | 2.06-2ubuntu14.1 | UBUNTU-CVE-2021-3695 |
| Ubuntu 16.04 | grub2 | Fix pending | ||
| Ubuntu 16.04 | grub2-signed | Fix pending | UBUNTU-CVE-2021-3695 | |
| Ubuntu 16.04 | grub2-unsigned | Fix pending | UBUNTU-CVE-2021-3695 | |
| Ubuntu 14.04 | grub2-signed | Fix pending | UBUNTU-CVE-2021-3695 | |
| Debian 14 | grub2 | Fixed | 2.06-3 | DEBIAN-CVE-2021-3695 |
| Debian 13 | grub2 | Fixed | 2.06-3 | DEBIAN-CVE-2021-3695 |
| Debian 12 | grub2 | Fixed | 2.06-3 | DEBIAN-CVE-2021-3695 |
| Red Hat Enterprise Linux 9 | grub2 | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-common | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-efi-aa64 | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-efi-aa64-cdboot | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-efi-aa64-modules | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-efi-x64 | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-efi-x64-cdboot | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-efi-x64-modules | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-pc | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-pc-modules | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-ppc64le | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-ppc64le-modules | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-tools | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-tools-efi | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-tools-extra | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | grub2-tools-minimal | Fixed | 1:2.06-27.el9_0.7 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | shim | Fixed | 0:15.6-1.el9 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | shim-aa64 | Fixed | 0:15.6-1.el9 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | shim-unsigned-x64 | Fixed | 0:15.6-1.el9 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 9 | shim-x64 | Fixed | 0:15.6-1.el9 | RHSA-2022:5099 |
| Red Hat Enterprise Linux 8 | grub2 | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-common | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-aa64 | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-aa64-cdboot | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-aa64-modules | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-ia32 | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-ia32-cdboot | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-ia32-modules | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-x64 | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-x64-cdboot | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-efi-x64-modules | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-pc | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-pc-modules | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-ppc64le | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-ppc64le-modules | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-tools | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-tools-efi | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-tools-extra | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | grub2-tools-minimal | Fixed | 1:2.02-123.el8_6.8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | shim | Fixed | 0:15.6-1.el8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | shim-aa64 | Fixed | 0:15.6-1.el8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | shim-ia32 | Fixed | 0:15.6-1.el8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | shim-unsigned-x64 | Fixed | 0:15.6-1.el8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 8 | shim-x64 | Fixed | 0:15.6-1.el8 | RHSA-2022:5095 |
| Red Hat Enterprise Linux 7 | grub2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-common | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-aa64-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-ia32 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-ia32-cdboot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-ia32-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-x64 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-x64-cdboot | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-efi-x64-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-pc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-pc-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-ppc-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-ppc64 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-ppc64-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-ppc64le | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-ppc64le-modules | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-tools | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-tools-extra | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | grub2-tools-minimal | Will not fix Out of support scope | ||
| AlmaLinux 9 | grub2-common | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-efi-aa64 | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-efi-aa64-cdboot | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-efi-aa64-modules | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-efi-x64 | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-efi-x64-cdboot | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-efi-x64-modules | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-pc | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-pc-modules | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-ppc64le | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-ppc64le-modules | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-tools | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-tools-efi | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-tools-extra | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | grub2-tools-minimal | Fixed | 1:2.06-27.el9_0.7.alma | ALSA-2022:5099 |
| AlmaLinux 9 | shim-aa64 | Fixed | 15.6-1.el9.alma | ALSA-2022:5099 |
| AlmaLinux 9 | shim-unsigned-x64 | Fixed | 15.6-1.el9.alma | ALSA-2022:5099 |
| AlmaLinux 9 | shim-x64 | Fixed | 15.6-1.el9.alma | ALSA-2022:5099 |
| AlmaLinux 8 | grub2-common | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-aa64 | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-aa64-cdboot | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-aa64-modules | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-ia32 | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-ia32-cdboot | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-ia32-modules | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-x64 | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-x64-cdboot | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-efi-x64-modules | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-pc | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-pc-modules | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-ppc64le-modules | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-tools | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-tools-efi | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-tools-extra | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | grub2-tools-minimal | Fixed | 1:2.02-123.el8_6.8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | shim-aa64 | Fixed | 15.6-1.el8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | shim-ia32 | Fixed | 15.6-1.el8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | shim-unsigned-x64 | Fixed | 15.6-1.el8.alma | ALSA-2022:5095 |
| AlmaLinux 8 | shim-x64 | Fixed | 15.6-1.el8.alma | ALSA-2022:5095 |
| Rocky Linux 9 | mokutil | Fixed | 2:0.4.0-8.el9_0.1 | RLSA-2022:5099 |
| Rocky Linux 9 | shim | Fixed | 0:15.6-1.el9 | RLSA-2022:5099 |
| Rocky Linux 8 | grub2 | Fixed | 1:2.02-123.el8_6.8 | RLSA-2022:5095 |
| Rocky Linux 8 | mokutil | Fixed | 1:0.3.0-11.el8_6.1 | RLSA-2022:5095 |
| Rocky Linux 8 | shim | Fixed | 0:15.6-1.el8 | RLSA-2022:5095 |
| Rocky Linux 8 | shim-unsigned-x64 | Fixed | 0:15.6-1.el8 | RLSA-2022:5095 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- grub2: affected: grub-2.06
Vendor advisories:
- https://security.gentoo.org/glsa/202209-12 (vendor-advisory)
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1991685
- https://security.gentoo.org/glsa/202209-12
- https://security.netapp.com/advisory/ntap-20220930-0001/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.