CVE-2023-40548
published 2024-01-29CVE-2023-40548: 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…
PriorityP341high7.4CVSS 3.1
AVLACHPRNUINSUCHIHAH
EPSS
0.43%
34.9th percentile
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.
Affected
23 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | shim | < shim 15.8-1~deb12u1 (bookworm) | shim 15.8-1~deb12u1 (bookworm) |
| fedoraproject | fedora | — | — |
| msrc | azl3_shim-unsigned-aarch64_15.4-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_shim-unsigned-aarch64_15.8-5_on_azure_linux_3.0 | — | — |
| msrc | azl3_shim-unsigned-x64_15.4-3_on_azure_linux_3.0 | — | — |
| msrc | azl3_shim-unsigned-x64_15.8-5_on_azure_linux_3.0 | — | — |
| msrc | azl3_shim_15.4-2_on_azure_linux_3.0 | — | — |
| msrc | azl3_shim_15.8-5_on_azure_linux_3.0 | — | — |
| msrc | azure_linux_3.0_arm | — | — |
| msrc | azure_linux_3.0_x64 | — | — |
| msrc | cbl2_shim-unsigned-aarch64_15-5_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_shim-unsigned-x64_15.4-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_shim-unsigned-x64_15.8-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_shim_15.4-2_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_shim_15.8-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl_mariner_2.0_arm | — | — |
| msrc | cbl_mariner_2.0_x64 | — | — |
| redhat | shim | < 15.8 | 15.8 |
| redhat | shim | — | — |
| redhat | shim | >= 0 < 15.8-1~deb11u1 | 15.8-1~deb11u1 |
| redhat | shim | >= 0 < 15.8-1~deb12u1 | 15.8-1~deb12u1 |
| redhat | shim | >= 0 < 15.8-1 | 15.8-1 |
| redhat | shim | >= 0 < 15.8-1 | 15.8-1 |
CVSS provenance
nvdv3.17.4HIGHCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
osv7.4HIGH
vendor_debian7.4HIGH
vendor_msrc7.4HIGH
vendor_redhat7.4HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
vendor_msrc·2024-01-09·CVSS 7.4
CVE-2023-40548 [HIGH] CWE-787 Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Mariner: Mariner
redhat: redhat
Customer Action Required: Yes
Remediation: CBL-
Red Hat
shim: Interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
vendor_redhat·2023-10-03·CVSS 7.4
CVE-2023-40548 [HIGH] CWE-190 shim: Interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
shim: Interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
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.
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 cause
Debian
CVE-2023-40548: shim - A buffer overflow was found in Shim in the 32-bit system. The overflow happens d...
vendor_debian·2023·CVSS 7.4
CVE-2023-40548 [HIGH] CVE-2023-40548: shim - A buffer overflow was found in Shim in the 32-bit system. The overflow happens d...
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.
Scope: local
bookworm: resolved (fixed in 15.8-1~deb12u1)
bullseye: resolved (fixed in 15.8-1~deb11u1)
forky: resolved (fixed in 15.8-1)
sid: resolved (fixed in 15.8-1)
trixie: resolved (fixed in 15.8-1)
OSV
CVE-2023-40548: A buffer overflow was found in Shim in the 32-bit system
osv·2024-01-29·CVSS 7.4
CVE-2023-40548 [HIGH] CVE-2023-40548: A buffer overflow was found in Shim in the 32-bit system
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.
GHSA
GHSA-7cf2-63mg-hv4j: A buffer overflow was found in Shim in the 32-bit system
ghsa_unreviewed·2024-01-29
CVE-2023-40548 [MEDIUM] CWE-122 GHSA-7cf2-63mg-hv4j: A buffer overflow was found in Shim in the 32-bit system
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://access.redhat.com/errata/RHSA-2024:1834https://access.redhat.com/errata/RHSA-2024:1835https://access.redhat.com/errata/RHSA-2024:1873https://access.redhat.com/errata/RHSA-2024:1876https://access.redhat.com/errata/RHSA-2024:1883https://access.redhat.com/errata/RHSA-2024:1902https://access.redhat.com/errata/RHSA-2024:1903https://access.redhat.com/errata/RHSA-2024:1959https://access.redhat.com/errata/RHSA-2024:2086https://access.redhat.com/security/cve/CVE-2023-40548https://bugzilla.redhat.com/show_bug.cgi?id=2241782https://access.redhat.com/errata/RHSA-2024:1834https://access.redhat.com/errata/RHSA-2024:1835https://access.redhat.com/errata/RHSA-2024:1873https://access.redhat.com/errata/RHSA-2024:1876https://access.redhat.com/errata/RHSA-2024:1883https://access.redhat.com/errata/RHSA-2024:1902https://access.redhat.com/errata/RHSA-2024:1903https://access.redhat.com/errata/RHSA-2024:1959https://access.redhat.com/errata/RHSA-2024:2086https://access.redhat.com/security/cve/CVE-2023-40548https://bugzilla.redhat.com/show_bug.cgi?id=2241782https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html
2024-01-29
Published