{"id":"CVE-2023-40548","summary":"Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems","details":"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.","modified":"2026-08-12T03:51:12.474345693Z","published":"2024-01-29T14:53:44.319Z","related":["ALSA-2024:1902","ALSA-2024:1903","SUSE-SU-2024:1368-1","SUSE-SU-2024:1461-1","SUSE-SU-2024:1462-1","SUSE-SU-2025:20136-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40548.json","cna_assigner":"redhat","cwe_ids":["CWE-190"]},"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2024/05/msg00009.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1834"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1835"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1873"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1876"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1883"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1902"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1903"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:1959"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:2086"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2023-40548"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/40xxx/CVE-2023-40548.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-40548"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2241782"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rhboot/shim","events":[{"introduced":"0"},{"fixed":"5914984a1ffeab841f482c791426d7ca9935a5e6"},{"introduced":"7e5c94dcf1693cec2a653a95e738333187170b33"},{"last_affected":"7e5c94dcf1693cec2a653a95e738333187170b33"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"15.8"},{"introduced":"15.8-rc1"},{"last_affected":"15.8-rc1"}],"source":["CPE_RANGE","CPE_STRING"],"cpe":["cpe:2.3:a:redhat:shim:*:*:*:*:*:*:*:*","cpe:2.3:a:redhat:shim:15.8:rc1:*:*:*:*:*:*"]}}],"versions":["15.8-rc1","15.7","15.6","15.6-rc2","15.5","15.5-rc2","15.4","15.3","shim-15.3-rc4","shim-15.3-rc3","shim-15.3-rc2","shim-15.3-rc1","15.2","15","14","13","12","11","0.9","0.8","0.7","0.5","0.4","0.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-40548.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}