CVEfocus › CVE database › CVE-2024-38797

CVE-2024-38797Out-of-bounds Read in HashPeImageByType()

CVSS 4.6 MediumEPSS 0.3% (higher than 18% of CVEs)Published 2025-04-07Updated 2025-04-08Assigner: TianoCore

EDK2 contains a vulnerability in the HashPeImageByType(). A user may cause a read out of bounds when a corrupted data pointer and length are sent via an adjecent network. A successful exploit of this vulnerability may lead to a loss of Integrity and/or Availability.

CWE-125

What to do

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

Debian, Red Hat, Ubuntu have 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

4Fixed
12Fix pending
7Not 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.04edk2Not affected
vulnerable_code_not_present
Ubuntu 25.10edk2Not affected
vulnerable_code_not_present
Ubuntu 24.04edk2Fixed2024.02-2ubuntu0.6UBUNTU-CVE-2024-38797
Ubuntu 22.04edk2Fixed2022.02-3ubuntu0.22.04.4UBUNTU-CVE-2024-38797
Ubuntu 20.04edk2Fix pendingUBUNTU-CVE-2024-38797
Ubuntu 18.04edk2Fix pendingUBUNTU-CVE-2024-38797
Ubuntu 16.04edk2Fix pendingUBUNTU-CVE-2024-38797
Debian 14edk2Fixed2025.02-8DEBIAN-CVE-2024-38797
Debian 13edk2Fixed2025.02-8DEBIAN-CVE-2024-38797
Debian 12edk2Fix pendingDEBIAN-CVE-2024-38797
Red Hat Enterprise Linux 10edk2Not affected
Red Hat Enterprise Linux 10edk2-aarch64Not affected
Red Hat Enterprise Linux 10edk2-ovmfNot affected
Red Hat Enterprise Linux 10edk2-toolsNot affected
Red Hat Enterprise Linux 10edk2-tools-docNot affected
Red Hat Enterprise Linux 9edk2Fix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-ovmfFix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-toolsFix pending
Fix deferred
Red Hat Enterprise Linux 9edk2-tools-docFix pending
Fix deferred
Red Hat Enterprise Linux 8edk2Fix pending
Fix deferred
Red Hat Enterprise Linux 8edk2-aarch64Fix pending
Fix deferred
Red Hat Enterprise Linux 8edk2-ovmfFix pending
Fix deferred

What the vendor says

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

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.