CVE-2023-40238: LogoFAIL out-of-bounds write in Insyde InsydeH2O BmpDecoderDxe
- Vendors
- FujitsuInsyde Software
CVE-2023-40238 is a LogoFAIL vulnerability in the BMP image parser used by the BmpDecoderDxe DXE driver in Insyde InsydeH2O firmware on certain Lenovo devices. The flaw affects InsydeH2O kernel 5.2 before 05.28.47, 5.3 before 05.37.47, 5.4 before 05.45.47, 5.5 before 05.53.47, and 5.6 before 05.60.47. The issue occurs during parsing of crafted BMP logo files in the DXE phase of UEFI execution, specifically in RLE4/RLE8-compressed BMP handling. An integer signedness error involving PixelHeight and PixelWidth causes incorrect pointer arithmetic when computing the destination pixel buffer location. In the reported RLE8 case, attacker-controlled header values such as PixelHeight equal to 0 can cause the write pointer to underflow below the intended output buffer, after which subsequent decode operations perform attacker-influenced writes to memory at a controllable address. This creates an out-of-bounds write condition during pre-OS firmware execution and can be leveraged for arbitrary code execution in the DXE environment.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can corrupt memory during the UEFI DXE phase, leading to arbitrary code execution before the operating system loads. Because exploitation occurs in firmware execution context, an attacker may bypass Secure Boot and other hardware-verified boot protections, alter the boot flow, and gain highly privileged pre-OS execution. The resulting access can enable persistence through firmware or NVRAM modification, tampering with EFI runtime services or boot variables, compromise of any installed operating system, and in some cases device instability or bricking if writes target invalid memory.
Mitigation
If you can’t patch tonight, do this now.
Disable or restrict user-supplied/custom boot logo functionality where possible, especially any firmware feature that loads logo images from the EFI System Partition, NVRAM, or update capsules. Prevent unauthorized modification of the EFI System Partition and firmware variables, enforce least-privilege administrative access, and monitor for unexpected changes to boot assets and firmware configuration. Where immediate patching is not possible, reducing or eliminating firmware parsing of externally supplied images materially lowers exposure.
Remediation
Patch, then assume compromise.
Update affected Insyde InsydeH2O firmware to a fixed release. Reported fixed versions are kernel 5.2 version 05.28.47 or later, 5.3 version 05.37.47 or later, 5.4 version 05.45.47 or later, 5.5 version 05.53.47 or later, and 5.6 version 05.60.47 or later, as provided by the device vendor for affected Lenovo platforms. Apply OEM firmware updates that incorporate the corrected BmpDecoderDxe parser and related LogoFAIL fixes.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2023-40238 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2023-40238?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2023-40238.
- Is there a patch for CVE-2023-40238?
- Update affected Insyde InsydeH2O firmware to a fixed release. Reported fixed versions are kernel 5.2 version 05.28.47 or later, 5.3 version 05.37.47 or later, 5.4 version 05.45.47 or later, 5.5 version 05.53.47 or later, and 5.6 version 05.60.47 or later, as provided by the device vendor for affected Lenovo platforms.
- What products are affected by CVE-2023-40238?
- Insyde Software Insydeh2o, Fujitsu Celsius C780 Firmware, Fujitsu Celsius H5511 Firmware, Fujitsu Celsius H7510 Firmware, Fujitsu Celsius H7613 Firmware, and at least 182 more.
- How severe is CVE-2023-40238?
- CVE-2023-40238 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 1.8% (79th percentile) as of Oct 16, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.