Vulnerability · Published Jan 29, 2024 · Assigned by redhat

CVE-2023-40548Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems

High 7.4

In plain English

A high-severity integer overflow in Red Hat Enterprise Linux 7 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.4High
Exploit odds (30 days)0.4%top 62.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8shim-aa6415.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux:9shim-aa6415.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux:8shim-ia3215.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux:8shim-x6415.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux:9shim-x6415.8-4.el9_3.alma.1ALSA-2024:1903
Debian:12shim15.8-1~deb12u1DEBIAN-CVE-2023-40548
Debian:13shim15.8-1DEBIAN-CVE-2023-40548
Debian:14shim15.8-1DEBIAN-CVE-2023-40548
Ubuntu:22.04:LTSshim15.8-0ubuntu1UBUNTU-CVE-2023-40548
Ubuntu:24.04:LTSshim15.8-0ubuntu1UBUNTU-CVE-2023-40548
Ubuntu:22.04:LTSshim-signed1.51.4UBUNTU-CVE-2023-40548
Ubuntu:24.04:LTSshim-signed1.58UBUNTU-CVE-2023-40548

Affected products (as reported)

Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

References