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

High 7.4 Published Updated

An integer overflow in Shim on 32-bit systems causes a heap buffer overflow, potentially leading to boot crashes or data integrity issues during system startup.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2023-40548?

CVE-2023-40548 is a high-severity vulnerability in Fedoraproject Fedora, published on 29 Jan 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-787, CWE-190

Which versions are affected by CVE-2023-40548?

It affects 2 products.

Products include Fedoraproject Fedora, Redhat Shim.

How do I fix CVE-2023-40548?

Apply the vendor's patch.

Is CVE-2023-40548 being exploited?

There is no known exploitation of CVE-2023-40548 in the wild and no public exploit code.

All Fedoraproject Fedora vulnerabilities

Sources

Also known as AZL-34093, AZL-34197, AZL-35255, AZL-35263, AZL-35275, BELL-CVE-2023-40548 and 3 more.

Is CVE-2023-40548 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free