Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-190 and the CVSS impact.
Summary
A buffer overflow was found in Shim in the 32-bit system. The overflow happens due to an addition operation involving a user-controlled value parsed from the PE binary being used by Shim. This value is further used for memory allocation operations, leading to a heap-based buffer overflow. This flaw causes memory corruption and can lead to a crash or data integrity issues during the boot phase.
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 | Red Hat Enterprise Linux 7 | — | 15.8-3.el7 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | 15.8-1.el7 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | 15.8-4.el8_9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.2 Advanced Update Support | — | 15.8-2.el8_2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.2 Telecommunications Update Service | — | 15.8-2.el8_2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions | — | 15.8-2.el8_2 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support | — | 15.8-2.el8_4 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.4 Telecommunications Update Service | — | 15.8-2.el8_4 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions | — | 15.8-2.el8_4 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support | — | 15.8-2.el8_6 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | — | 15.8-2.el8 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 8.8 Extended Update Support | — | 15.8-2.el8 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 15.8-4.el9_3 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | — | 15.8-3.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | — | 15.8-2.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.0 Extended Update Support | — | 15.8-2.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9.2 Extended Update Support | — | 15.8-3.el9_2 | Patch available | CNA |
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in 15.8-3.el7 Patch available CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in 15.8-1.el7 Patch available CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in 15.8-4.el8_9 Patch available CNA
- Red Hat Enterprise Linux 8.2 Advanced Update Support VendorRed Hat Affected — Fixed in 15.8-2.el8_2 Patch available CNA
- Red Hat Enterprise Linux 8.2 Telecommunications Update Service VendorRed Hat Affected — Fixed in 15.8-2.el8_2 Patch available CNA
- Red Hat Enterprise Linux 8.2 Update Services for SAP Solutions VendorRed Hat Affected — Fixed in 15.8-2.el8_2 Patch available CNA
- Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support VendorRed Hat Affected — Fixed in 15.8-2.el8_4 Patch available CNA
- Red Hat Enterprise Linux 8.4 Telecommunications Update Service VendorRed Hat Affected — Fixed in 15.8-2.el8_4 Patch available CNA
- Red Hat Enterprise Linux 8.4 Update Services for SAP Solutions VendorRed Hat Affected — Fixed in 15.8-2.el8_4 Patch available CNA
- Red Hat Enterprise Linux 8.6 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-2.el8_6 Patch available CNA
- Red Hat Enterprise Linux 8.8 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-2.el8 Patch available CNA
- Red Hat Enterprise Linux 8.8 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-2.el8 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 15.8-4.el9_3 Patch available CNA
- Red Hat Enterprise Linux 9.0 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-3.el9 Patch available CNA
- Red Hat Enterprise Linux 9.0 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-2.el9 Patch available CNA
- Red Hat Enterprise Linux 9.0 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-2.el9 Patch available CNA
- Red Hat Enterprise Linux 9.2 Extended Update Support VendorRed Hat Affected — Fixed in 15.8-3.el9_2 Patch available CNA
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:redhat:shim:*:*:*:*:*:*:*:* | before 15.8 | Vulnerable | Red Hat |
| cpe:2.3:a:redhat:shim:15.8:rc1:*:*:*:*:*:* | 15.8 rc1 | Vulnerable | Red Hat |
| cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* | 39 | Vulnerable | Fedoraproject |
- cpe:2.3:a:redhat:shim:*:*:*:*:*:*:*:* Versions before 15.8 Vulnerable ·Red Hat
- cpe:2.3:a:redhat:shim:15.8:rc1:*:*:*:*:*:* Versions 15.8 rc1 Vulnerable ·Red Hat
- cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* Versions 39 Vulnerable ·Fedoraproject
Remediation
Red Hat 9 advisories
- RHSA-2024:2086 Released 2024-04-29 · Red Hat rating Importantshim security update
- Red Hat Enterprise Linux BaseOS EUS (v.8.6) shim-15.8-2.el8_6, shim-aa64-15.8-2.el8_6, shim-ia32-15.8-2.el8_6 +1
- RHSA-2024:1959 Released 2024-04-23 · Red Hat rating Importantshim security update
- Red Hat Enterprise Linux Client (v. 7) mokutil-15.8-1.el7, shim-15.8-3.el7, shim-ia32-15.8-1.el7 +4
- Red Hat Enterprise Linux Server (v. 7) mokutil-15.8-1.el7, shim-15.8-3.el7, shim-ia32-15.8-1.el7 +4
- Red Hat Enterprise Linux Workstation (v. 7) mokutil-15.8-1.el7, shim-15.8-3.el7, shim-ia32-15.8-1.el7 +4
- RHSA-2024:1902 Released 2024-04-18 · Red Hat rating Importantshim security update
- Red Hat Enterprise Linux BaseOS (v. 8) shim-15.8-4.el8_9, shim-aa64-15.8-4.el8_9, shim-ia32-15.8-4.el8_9 +1
Show 6 more Red Hat advisories
- RHSA-2024:1903 Released 2024-04-18 · Red Hat rating Importantshim bug fix update
- Red Hat Enterprise Linux BaseOS (v. 9) shim-15.8-4.el9_3, shim-aa64-15.8-4.el9_3, shim-x64-15.8-4.el9_3
- RHSA-2024:1883 Released 2024-04-18 · Red Hat rating Importantshim security update
- Red Hat CodeReady Linux Builder EUS (v.8.8) shim-unsigned-x64-15.8-2.el8
- Red Hat Enterprise Linux BaseOS EUS (v.8.8) shim-15.8-2.el8, shim-aa64-15.8-2.el8, shim-ia32-15.8-2.el8 +1
- RHSA-2024:1876 Released 2024-04-18 · Red Hat rating Importantshim bug fix update
- Red Hat Enterprise Linux BaseOS EUS (v.9.2) shim-15.8-3.el9_2, shim-aa64-15.8-3.el9_2, shim-x64-15.8-3.el9_2
- RHSA-2024:1873 Released 2024-04-18 · Red Hat rating Importantshim security update
- Red Hat Enterprise Linux BaseOS AUS (v.8.4) shim-15.8-2.el8_4, shim-ia32-15.8-2.el8_4, shim-x64-15.8-2.el8_4
- Red Hat Enterprise Linux BaseOS E4S (v.8.4) shim-15.8-2.el8_4, shim-ia32-15.8-2.el8_4, shim-x64-15.8-2.el8_4
- Red Hat Enterprise Linux BaseOS TUS (v.8.4) shim-15.8-2.el8_4, shim-ia32-15.8-2.el8_4, shim-x64-15.8-2.el8_4
- RHSA-2024:1835 Released 2024-04-16 · Red Hat rating Importantshim security update
- Red Hat CodeReady Linux Builder EUS (v.9.0) shim-unsigned-x64-15.8-2.el9
- Red Hat Enterprise Linux AppStream EUS (v.9.0) shim-unsigned-aarch64-15.8-2.el9
- Red Hat Enterprise Linux BaseOS EUS (v.9.0) shim-15.8-3.el9, shim-aa64-15.8-3.el9, shim-x64-15.8-3.el9
- RHSA-2024:1834 Released 2024-04-16 · Red Hat rating Importantshim security update
- Red Hat Enterprise Linux BaseOS AUS (v. 8.2) shim-15.8-2.el8_2, shim-ia32-15.8-2.el8_2, shim-x64-15.8-2.el8_2
- Red Hat Enterprise Linux BaseOS E4S (v. 8.2) shim-15.8-2.el8_2, shim-ia32-15.8-2.el8_2, shim-x64-15.8-2.el8_2
- Red Hat Enterprise Linux BaseOS TUS (v. 8.2) shim-15.8-2.el8_2, shim-ia32-15.8-2.el8_2, shim-x64-15.8-2.el8_2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1834
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1835
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
Show 7 more groups
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1873
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1876
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1883
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1902
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1903
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:1959
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
- Advisory ·
Red Hat Enterprise Linux 7, Red Hat Enterprise Linux 8 and 11 more products — RHSA-2024:2086
6 records Highest priority Priority MEDIUM 1 MEDIUM, 5 LOW
Other records, highest priority first
- TI-2023-21352 Shim: rce in http boot support may lead to secure boot bypassPriority MEDIUM 46
- TI-2023-21354 Shim: out-of-bounds read in verify_buffer_authenticode() malformed pe filePriority LOW 28
- TI-2023-21351 Shim: out-of-bounds read printing error messagesPriority LOW 28
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat CodeReady Linux Builder EUS (v.8.8) | Fixed | RHSA-2024:1883 |
| Red Hat CodeReady Linux Builder EUS (v.9.0) | Fixed | RHSA-2024:1835 |
| Red Hat Enterprise Linux AppStream EUS (v.9.0) | Fixed | RHSA-2024:1835 |
| Red Hat Enterprise Linux BaseOS (v. 8) | Fixed | RHSA-2024:1902 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2024:1903 |
| Red Hat Enterprise Linux BaseOS AUS (v. 8.2) | Fixed | RHSA-2024:1834 |
| Red Hat Enterprise Linux BaseOS AUS (v.8.4) | Fixed | RHSA-2024:1873 |
| Red Hat Enterprise Linux BaseOS E4S (v. 8.2) | Fixed | RHSA-2024:1834 |
| Red Hat Enterprise Linux BaseOS E4S (v.8.4) | Fixed | RHSA-2024:1873 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.6) | Fixed | RHSA-2024:2086 |
| Red Hat Enterprise Linux BaseOS EUS (v.8.8) | Fixed | RHSA-2024:1883 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.0) | Fixed | RHSA-2024:1835 |
| Red Hat Enterprise Linux BaseOS EUS (v.9.2) | Fixed | RHSA-2024:1876 |
| Red Hat Enterprise Linux BaseOS TUS (v. 8.2) | Fixed | RHSA-2024:1834 |
| Red Hat Enterprise Linux BaseOS TUS (v.8.4) | Fixed | RHSA-2024:1873 |
| Red Hat Enterprise Linux Client (v. 7) | Fixed | RHSA-2024:1959 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2024:1959 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2024:1959 |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-40548
- 2026-10-03 Alias added: GHSA-7cf2-63mg-hv4j
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-2022-11371 Out-of-bounds write in Red Hat Bootloader Team shim CVSS 3.1HIGH 7.8
- 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-2023-40548 · CVE Program
- CVE-2023-40548 · NVD
- FIRST EPSS
- GHSA-7cf2-63mg-hv4j · GitHub Advisory Database · CC BY 4.0
- CVE-2023-40548 · 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