There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables
Summary
| CVE | CVE-2022-28737 |
|---|---|
| State | PUBLISHED |
| Assigner | canonical |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2023-07-20 01:15:10 UTC |
| Updated | 2026-11-10 12:10:00 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-787
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 6.5 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Red Hat Bootloader Team | Shim | affected 15.6 semver | Linux |
| ADP | Redhat | Shim | affected 15.6 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| CVE - CVE-2022-28737 | af854a3a-2127-422b-91ae-364da2661108 | cve.mitre.org | Third Party Advisory |
| oss-security - [SECURITY PATCH 00/30] Multiple GRUB2 vulnerabilities - 2022/06/07 round | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List, Third Party Advisory |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Chris Coulson (en)
Legacy QID Mappings
- 159881 Oracle Enterprise Linux Security Update for shim (ELSA-2022-9465)
- 159887 Oracle Enterprise Linux Security Update for shim-signed (ELSA-2022-9466)
- 159943 Oracle Enterprise Linux Security Update for grub2 (ELSA-2022-5099)
- 159967 Oracle Enterprise Linux Security Update for grub2, mokutil, shim, and shim-unsigned-x64 (ELSA-2022-5095)
- 159985 Oracle Enterprise Linux Security Update for grub2 (ELSA-2022-9596)
- 159986 Oracle Enterprise Linux Security Update for grub2 (ELSA-2022-9595)
- 181578 Debian Security Update for shim (CVE-2022-28737)
- 240473 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5100)
- 240474 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5099)
- 240476 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5096)
- 240477 Red Hat Update for grub2, mokutil, shim, and shim-unsigned-x64 (RHSA-2022:5095)
- 282827 Fedora Security Update for shim (FEDORA-2022-98830efc68)
- 377130 Alibaba Cloud Linux Security Update for grub2, mokutil, shim, and shim-unsigned-x64 (ALINUX3-SA-2022:0134)
- 377622 Alibaba Cloud Linux Security Update for grub2, mokutil, shim, and shim-unsigned-x64 (ALINUX3-SA-2022:0164)
- 672038 EulerOS Security Update for shim (EulerOS-SA-2022-2280)
- 672050 EulerOS Security Update for shim (EulerOS-SA-2022-2235)
- 672117 EulerOS Security Update for shim (EulerOS-SA-2022-2333)
- 672129 EulerOS Security Update for shim (EulerOS-SA-2022-2304)
- 672231 EulerOS Security Update for shim (EulerOS-SA-2022-2635)
- 672256 EulerOS Security Update for shim (EulerOS-SA-2022-2667)
- 672311 EulerOS Security Update for shim (EulerOS-SA-2022-2699)
- 710619 Gentoo Linux GRUB Multiple Vulnerabilities (GLSA 202209-12)
- 753881 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:1702-1)
- 753962 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:2091-1)
- 753969 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:2086-1)
- 754060 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:2084-1)
- 755901 SUSE Enterprise Linux Security Update for shim (SUSE-SU-2023:1863-1)
- 940639 AlmaLinux Security Update for grub2, (ALSA-2022:5095)
- 940640 AlmaLinux Security Update for grub2, (ALSA-2022:5099)
- 960538 Rocky Linux Security Update for grub2, (RLSA-2022:5099)