Out-of-bounds write in grub - CVE-2021-3695

 

Out-of-bounds write in grub - CVE-2021-3695

Published: June 8, 2022 / Updated: July 20, 2022


Vulnerability identifier: #VU64057
CSH Severity: Low
CVSS v4: 7.1 [CVSS:4.0/AV:L/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3695
CWE-ID: CWE-787
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local privileged user to bypass implemented security restrictions.

The vulnerability exists due to a boundary error when processing PNG grayscale images. A local privileged user can pass specially crafted PNG image to the application, trigger an out-of-bounds write error and potentially bypass secure boot protection mechanism.


Affected software

grub
Gentoo Linux
Amazon Linux AMI
Oracle Linux
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise Module for SUSE Manager Proxy
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
Anolis OS
HPE Helion Openstack
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
SUSE Linux Enterprise Module for Server Applications
SUSE Linux Enterprise Server for SAP Applications
openSUSE Leap
openEuler
Ubuntu
Fedora
Red Hat Advanced Cluster Management for Kubernetes
Dell Secure Connect Gateway
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
shim (Red Hat package)
shim-unsigned-x64 (Red Hat package)
mokutil
shim-signed (Ubuntu package)
grub-efi-amd64-signed (Ubuntu package)
grub-efi-arm64-signed (Ubuntu package)
grub2 (Red Hat package)
grub2-debuginfo
grub2-systemd-sleep-plugin
grub2-snapper-plugin
grub2-x86_64-xen
grub2-x86_64-efi
grub2-i386-pc
grub2-debugsource
grub2
grub2-tools-extra
grub2-efi-ia32
grub2-efi-ia32-cdboot
grub2-efi-x64
grub2-efi-x64-cdboot
grub2-pc
grub2-tools-efi
grub2-tools-minimal
grub2-common
grub2-efi-aa64-modules
grub2-efi-ia32-modules
grub2-efi-x64-modules
grub2-pc-modules
grub2-efi-aa64
grub2-efi-aa64-cdboot
grub2-tools
grub2-s390x-emu
grub2-arm64-efi
grub2-powerpc-ieee1275
grub2-help
grub2-x86_64-efi-debug
grub2-s390x-emu-debug
grub2-branding-upstream
grub2-arm64-efi-debug
grub2-i386-pc-debug
grub2-powerpc-ieee1275-debug
sys-boot/grub
grub-efi-arm64-bin (Ubuntu package)
grub-efi-arm64 (Ubuntu package)
grub-efi-amd64-bin (Ubuntu package)
grub-efi-amd64 (Ubuntu package)
shim-unsigned-x64
shim-aa64
shim-ia32
shim-x64
shim (Ubuntu package)
Dell EMC Storage Monitoring and Reporting (SMR)
Red Hat OpenShift Container Platform
Dell EMC VxRail Appliance
EMC Cloud Tiering Appliance

How to mitigate CVE-2021-3695

Install updates from vendor's website.

Red Hat Advanced Cluster Management for Kubernetes - addressed in versions 2.3.11, 2.4.5, 2.5.1
Dell Secure Connect Gateway - update to 5.14.00.10
shim (Red Hat package) - addressed in versions 15.6-1.el8, 15.6-1.el9
shim-unsigned-x64 (Red Hat package) - addressed in versions 15.6-1.el8, 15.6-1.el9
mokutil - update to 0.3.0-11.0.3
shim-signed (Ubuntu package) - addressed in versions 1.40.9+15.7-0ubuntu1, 1.51.3+15.7-0ubuntu1
grub-efi-amd64-signed (Ubuntu package) - addressed in versions 1.187.3~20.04.1+2.06-2ubuntu14.1, 1.187.3~22.04.1+2.06-2ubuntu14.1
grub-efi-arm64-signed (Ubuntu package) - addressed in versions 1.187.3~20.04.1+2.06-2ubuntu14.1, 1.187.3~22.04.1+2.06-2ubuntu14.1
grub2 (Red Hat package) - addressed in versions 2.02-87.el8_1.10, 2.02-87.el8_2.10, 2.02-99.el8_4.9, 2.02-123.el8_6.8, 2.06-27.el9_0.7
grub2-debuginfo - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-systemd-sleep-plugin - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-snapper-plugin - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-x86_64-xen - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-x86_64-efi - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-i386-pc - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-debugsource - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2 - addressed in versions 2.02-115.67.2, 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-tools-extra - update to 2.02-123.0.1
grub2-efi-ia32 - update to 2.02-123.0.1
grub2-efi-ia32-cdboot - update to 2.02-123.0.1
grub2-efi-x64 - update to 2.02-123.0.1
grub2-efi-x64-cdboot - update to 2.02-123.0.1
grub2-pc - update to 2.02-123.0.1
grub2-tools-efi - update to 2.02-123.0.1
grub2-tools-minimal - update to 2.02-123.0.1
grub2-common - update to 2.02-123.0.1
grub2-efi-aa64-modules - update to 2.02-123.0.1
grub2-efi-ia32-modules - update to 2.02-123.0.1
grub2-efi-x64-modules - update to 2.02-123.0.1
grub2-pc-modules - update to 2.02-123.0.1
grub2-efi-aa64 - update to 2.02-123.0.1
grub2-efi-aa64-cdboot - update to 2.02-123.0.1
grub2-tools - update to 2.02-123.0.1
grub2-s390x-emu - addressed in versions 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-arm64-efi - addressed in versions 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.3.5.1, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-powerpc-ieee1275 - addressed in versions 2.02-137.2, 2.02-143.2, 2.02-150000.122.12.2, 2.02-150100.123.12.2, 2.04-150200.9.63.2, 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-debugsource - update to 2.04-24
grub2 - update to 2.04-24
grub2-efi-aa64 - update to 2.04-24
grub2-tools-minimal - update to 2.04-24
grub2-efi-aa64-cdboot - update to 2.04-24
grub2-debuginfo - update to 2.04-24
grub2-tools - update to 2.04-24
grub2-tools-extra - update to 2.04-24
grub2-efi-x64-modules - update to 2.04-24
grub2-common - update to 2.04-24
grub2-tools-efi - update to 2.04-24
grub2-efi-x64-cdboot - update to 2.04-24
grub2-efi-ia32-cdboot - update to 2.04-24
grub2-efi-ia32-modules - update to 2.04-24
grub2-efi-ia32 - update to 2.04-24
grub2-pc - update to 2.04-24
grub2-efi-x64 - update to 2.04-24
grub2-help - update to 2.04-24
grub2-efi-aa64-modules - update to 2.04-24
grub2-pc-modules - update to 2.04-24
grub2-x86_64-efi-debug - addressed in versions 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-s390x-emu-debug - addressed in versions 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-branding-upstream - addressed in versions 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-arm64-efi-debug - addressed in versions 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-i386-pc-debug - addressed in versions 2.04-150300.22.20.2, 2.06-150400.11.5.2
grub2-powerpc-ieee1275-debug - addressed in versions 2.04-150300.22.20.2, 2.06-150400.11.5.2
sys-boot/grub - update to 2.06
grub-efi-arm64-bin (Ubuntu package) - update to 2.06-2ubuntu14.1
grub-efi-arm64 (Ubuntu package) - update to 2.06-2ubuntu14.1
grub-efi-amd64-bin (Ubuntu package) - update to 2.06-2ubuntu14.1
grub-efi-amd64 (Ubuntu package) - update to 2.06-2ubuntu14.1
grub2 - addressed in versions 2.06-11.fc35, 2.06-42.fc36
grub2 - update to 2.06-61
Dell EMC Storage Monitoring and Reporting (SMR) - update to 4.8.0.0
Red Hat OpenShift Container Platform - update to 4.11.0
Dell EMC VxRail Appliance - addressed in versions 7.0.372, 8.0.000
EMC Cloud Tiering Appliance - addressed in versions 13.0.0.2.33, 13.1.0.2.25
shim-unsigned-x64 - update to 15.6-1
shim-aa64 - update to 15.6-1.0.1
shim-ia32 - update to 15.6-1.0.1
shim-x64 - update to 15.6-1.0.1
shim (Ubuntu package) - update to 15.7-0ubuntu1

External References

Related Security Bulletins