Out-of-bounds write in Red Hat Bootloader Team shim
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 9 fixed, 1 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-787 and the CVSS impact.
Summary
There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables; The handle_image() function takes into account the SizeOfRawData field from each section to be loaded. An attacker can leverage this to perform out-of-bound writes into memory. Arbitrary code execution is not discarded in such scenario.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat Bootloader Team | shim | before 15.6 | 15.6 | Patch available | CNA |
- shim VendorRed Hat Bootloader Team Affected before 15.6 Fixed in 15.6 Patch available CNA
Remediation
- Fix · CNA shim (Red Hat Bootloader Team) Fixed in 15.6
Red Hat 5 advisories
- RHSA-2022:5100 Released 2022-06-16 · Red Hat rating Importantgrub2, mokutil, shim, and shim-unsigned-x64 security update
- Red Hat CodeReady Linux Builder EUS (v. 8.2) shim-unsigned-x64-15.6-1.el8
- Red Hat Enterprise Linux BaseOS EUS (v. 8.2) grub2-1:2.02-87.el8_2.10, grub2-common-1:2.02-87.el8_2.10, grub2-efi-aa64-1:2.02-87.el8_2.10 +20
- RHSA-2022:5095 Released 2022-06-16 · Red Hat rating Importantgrub2, mokutil, shim, and shim-unsigned-x64 security update
- Red Hat Enterprise Linux BaseOS (v. 8) grub2-1:2.02-123.el8_6.8, grub2-common-1:2.02-123.el8_6.8, grub2-efi-aa64-1:2.02-123.el8_6.8 +20
- Red Hat Enterprise Linux CRB (v. 8) shim-unsigned-x64-15.6-1.el8
- RHSA-2022:5099 Released 2022-06-16 · Red Hat rating Importantgrub2, mokutil, shim, and shim-unsigned-x64 security update
- Red Hat CodeReady Linux Builder (v. 9) shim-unsigned-x64-15.6-1.el9
- Red Hat Enterprise Linux BaseOS (v. 9) grub2-1:2.06-27.el9_0.7, grub2-common-1:2.06-27.el9_0.7, grub2-efi-aa64-1:2.06-27.el9_0.7 +16
Show 2 more Red Hat advisories
- RHSA-2022:5096 Released 2022-06-16 · Red Hat rating Importantgrub2, mokutil, shim, and shim-unsigned-x64 security update
- Red Hat Enterprise Linux BaseOS EUS (v.8.4) grub2-1:2.02-99.el8_4.9, grub2-common-1:2.02-99.el8_4.9, grub2-efi-aa64-1:2.02-99.el8_4.9 +20
- Red Hat Enterprise Linux CRB EUS (v.8.4) shim-unsigned-x64-15.6-1.el8
- RHSA-2022:5098 Released 2022-06-16 · Red Hat rating Importantgrub2, mokutil, and shim security update
- Red Hat Enterprise Linux BaseOS E4S (v. 8.1) grub2-1:2.02-87.el8_1.10, grub2-common-1:2.02-87.el8_1.10, grub2-efi-aa64-modules-1:2.02-87.el8_1.10 +17
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat CodeReady Linux Builder (v. 9) | Fixed | RHSA-2022:5099 |
| Red Hat CodeReady Linux Builder EUS (v. 8.2) | Fixed | RHSA-2022:5100 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2022:5095 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2022:5099 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.1) | Fixed | RHSA-2022:5098 |
| Red Hat Enterprise Linux BaseOS EUS (v. 8.2) | Fixed | RHSA-2022:5100 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.4) | Fixed | RHSA-2022:5096 |
| Red Hat Enterprise Linux CRB (v. 8) | Fixed | RHSA-2022:5095 |
| Red Hat Enterprise Linux CRB EUS (v.8.4) | Fixed | RHSA-2022:5096 |
Not affected: 5 products
- Red Hat Enterprise Linux BaseOS (v. 8)
- Red Hat Enterprise Linux BaseOS (v. 9)
- Red Hat Enterprise Linux BaseOS E4S (v. 8.1)
- Red Hat Enterprise Linux BaseOS EUS (v. 8.2)
- Red Hat Enterprise Linux BaseOS EUS (v.8.4)
Timeline
- 2026-10-02 Threatist record created from CVE-2022-28737
- 2026-10-03 Alias added: GHSA-hmxr-46w2-jjwh
References
More Red Hat Shim vulnerabilities
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypass CVSS 3.1HIGH 8.3
- TI-2014-02993 Heap-based buffer overflow in Shim allows remote attackers to execute arbitrary code via… CVSS 2.0HIGH 7.5
- TI-2014-02994 Unspecified vulnerability in Shim might allow attackers to execute arbitrary code via a… CVSS 2.0HIGH 7.5
- TI-2023-21353 Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems CVSS 3.1HIGH 7.4
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe file CVSS 3.1MEDIUM 6.2
- TI-2023-21351 Shim: out-of-bounds read printing error messages CVSS 3.1MEDIUM 6.2
Sources
- CVE-2022-28737 · CVE Program
- CVE-2022-28737 · NVD
- FIRST EPSS
- GHSA-hmxr-46w2-jjwh · GitHub Advisory Database · CC BY 4.0
- CVE-2022-28737 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences