CVEfocus › CVE database › CVE-2023-40548

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

CVSS 7.4 HighEPSS 0.4% (higher than 23% of CVEs)Published 2024-01-29Updated 2026-06-26Assigner: redhat

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.

CWE-190

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

28Fixed
9Fix pending
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 25.10secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 24.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 24.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40548
Ubuntu 24.04shim-signedFixed1.58UBUNTU-CVE-2023-40548
Ubuntu 22.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 22.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40548
Ubuntu 22.04shim-signedFixed1.51.4UBUNTU-CVE-2023-40548
Ubuntu 20.04secureboot-dbNot affected
vulnerable_code_not_present
Ubuntu 20.04shimFixed15.8-0ubuntu1UBUNTU-CVE-2023-40548
Ubuntu 20.04shim-signedFixed1.40.10UBUNTU-CVE-2023-40548
Ubuntu 18.04secureboot-dbFix pending
Ubuntu 18.04shimFix pendingUBUNTU-CVE-2023-40548
Ubuntu 18.04shim-signedFix pendingUBUNTU-CVE-2023-40548
Ubuntu 16.04secureboot-dbFix pending
Ubuntu 16.04shimFix pendingUBUNTU-CVE-2023-40548
Ubuntu 16.04shim-signedFix pendingUBUNTU-CVE-2023-40548
Ubuntu 14.04secureboot-dbFix pending
Ubuntu 14.04shimFix pendingUBUNTU-CVE-2023-40548
Ubuntu 14.04shim-signedFix pendingUBUNTU-CVE-2023-40548
Debian 14shimFixed15.8-1DEBIAN-CVE-2023-40548
Debian 13shimFixed15.8-1DEBIAN-CVE-2023-40548
Debian 12shimFixed15.8-1~deb12u1DEBIAN-CVE-2023-40548
Red Hat Enterprise Linux 9shimFixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 9shim-aa64Fixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 9shim-x64Fixed0:15.8-4.el9_3RHSA-2024:1903
Red Hat Enterprise Linux 8shimFixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-aa64Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-ia32Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 8shim-x64Fixed0:15.8-4.el8_9RHSA-2024:1902
Red Hat Enterprise Linux 7mokutilFixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shimFixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-ia32Fixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-signedFixed0:15.8-1.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-unsigned-ia32Fixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-unsigned-x64Fixed0:15.8-3.el7RHSA-2024:1959
Red Hat Enterprise Linux 7shim-x64Fixed0:15.8-1.el7RHSA-2024:1959
AlmaLinux 9shim-aa64Fixed15.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux 9shim-x64Fixed15.8-4.el9_3.alma.1ALSA-2024:1903
AlmaLinux 8shim-aa64Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux 8shim-ia32Fixed15.8-4.el8_9.alma.1ALSA-2024:1902
AlmaLinux 8shim-x64Fixed15.8-4.el8_9.alma.1ALSA-2024:1902

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: There's no available mitigation for this issue.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.