CVE-2023-40548: Shim: interger overflow leads to heap buffer overflow in verify_sbat_section on 32-bits systems
Vulnerability summary
CVE-2023-40548 is a high (CVSS 7.4) Integer Overflow or Wraparound vulnerability in fedoraproject fedora. EPSS estimates a 0.43% chance of exploitation in the next 30 days, higher than 39.2% of scored vulnerabilities.
Not severe (CVSS 7.4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 14 · Related 4Timeline
- 29-01-2024PublishedVulnerability first disclosed.
- 26-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 4 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated7.4HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated7.4HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST7.4HighCVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.43%
Chance of exploitation in the next 30 days
Percentile
39%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.44% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu2 products
- shimAll versions (No fix recorded) | < 15.8-0ubuntu1
- shim-signedAll versions (No fix recorded) | < 1.40.10 | < 1.51.4 | < 1.58
Debian1 product
- shim< 15.8-1~deb12u1 | < 15.8-1
Fedoraproject1 product
- fedoraEOL39
Redhat1 product
- shim< 15.8 | 15.8:rc1
4 vendors · 5 products