Out-of-bounds write in grub - CVE-2022-28737

 

Out-of-bounds write in grub - CVE-2022-28737

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


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

Vulnerability details

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

The vulnerability exists due to a boundary error in the handle_image() function when shim tries to load and execute crafted EFI executables. A local privileged user can trigger an out-of-bounds write error and bypass secure boot protection mechanism.


Affected software

grub
Gentoo Linux
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Linux Enterprise Micro
SUSE Linux Enterprise Micro for Rancher
openSUSE Leap Micro
SUSE Enterprise Storage
Anolis OS
Red Hat Enterprise Linux for x86_64
Oracle Linux
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
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 OpenStack Cloud
SUSE OpenStack Cloud Crowbar
SUSE Linux Enterprise Server 12 SP2 BCL
SUSE Linux Enterprise Server 12 SP4 LTSS
SUSE Linux Enterprise Server 12 SP4 ESPOS
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
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-arm64-signed (Ubuntu package)
grub-efi-amd64-signed (Ubuntu package)
grub2 (Red Hat package)
grub2-common
grub2-efi-aa64-modules
grub2-efi-aa64
grub2-efi-ia32-modules
grub2-efi-x64-modules
grub2-pc-modules
grub2-efi-aa64-cdboot
grub2-tools
grub2-tools-extra
grub2-tools-minimal
grub2-tools-efi
grub2-pc
grub2-efi-ia32
grub2-efi-x64-cdboot
grub2-efi-x64
grub2-efi-ia32-cdboot
sys-boot/grub
grub-efi-amd64-bin (Ubuntu package)
grub-efi-amd64 (Ubuntu package)
grub-efi-arm64 (Ubuntu package)
grub-efi-arm64-bin (Ubuntu package)
shim-unsigned-x64
shim-unsigned-aarch64
shim
shim-x64
shim-aa64
shim-ia32
shim (Ubuntu package)
shim-debuginfo
shim-debugsource
PowerStore T
Storage Resource Manager
Red Hat OpenShift Container Platform
Dell EMC Storage Monitoring and Reporting (SMR)
Dell EMC VxRail Appliance

How to mitigate CVE-2022-28737

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
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-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
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
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-common - update to 2.02-123.0.1
grub2-efi-aa64-modules - update to 2.02-123.0.1
grub2-efi-aa64 - 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-cdboot - update to 2.02-123.0.1
grub2-tools - update to 2.02-123.0.1
grub2-tools-extra - update to 2.02-123.0.1
grub2-tools-minimal - update to 2.02-123.0.1
grub2-tools-efi - update to 2.02-123.0.1
grub2-pc - update to 2.02-123.0.1
grub2-efi-ia32 - update to 2.02-123.0.1
grub2-efi-x64-cdboot - update to 2.02-123.0.1
grub2-efi-x64 - update to 2.02-123.0.1
grub2-efi-ia32-cdboot - update to 2.02-123.0.1
sys-boot/grub - update to 2.06
grub-efi-amd64-bin (Ubuntu package) - update to 2.06-2ubuntu14.1
grub-efi-amd64 (Ubuntu package) - update to 2.06-2ubuntu14.1
grub-efi-arm64 (Ubuntu package) - update to 2.06-2ubuntu14.1
grub-efi-arm64-bin (Ubuntu package) - update to 2.06-2ubuntu14.1
PowerStore T - update to 3.5.0.1-2083289
Red Hat OpenShift Container Platform - update to 4.11.0
Dell EMC Storage Monitoring and Reporting (SMR) - update to 5.0.1.0
Storage Resource Manager - update to 5.0.1.0
Dell Secure Connect Gateway - update to 5.24.00.14
Dell EMC VxRail Appliance - update to 8.0.101
shim-unsigned-x64 - update to 15.6-1
shim-unsigned-x64 - update to 15.6-1
shim-unsigned-aarch64 - update to 15.6-1
shim - update to 15.6-1
shim-x64 - update to 15.6-1.0.1
shim-aa64 - update to 15.6-1.0.1
shim-ia32 - update to 15.6-1.0.1
shim (Ubuntu package) - update to 15.7-0ubuntu1
shim - addressed in versions 15.7-22.15.1, 15.7-25.24.1, 15.7-25.27.1, 15.7-150100.3.35.1, 15.7-150300.4.11.1, 15.8-25.30.1, 15.8-150100.3.38.1
shim-debuginfo - addressed in versions 15.7-150100.3.35.1, 15.7-150300.4.11.1, 15.8-150100.3.38.1
shim-debugsource - addressed in versions 15.7-150100.3.35.1, 15.7-150300.4.11.1, 15.8-150100.3.38.1
shim - update to 15-22
shim-debugsource - update to 15-22
shim-debuginfo - update to 15-22

External References

Related Security Bulletins