Heap-based Buffer OverflowWeakness · CWE-122

CVE-2024-38796

MEDIUM · 5.9 CVSS v3.1 Published 2024-09-27
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
61/100
Remediation priority · Elevated
Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
EDK2 contains a vulnerability in the PeCoffLoaderRelocateImage(). An Attacker may cause memory corruption due to an overflow via an adjacent network. A successful exploit of this vulnerability may lead to a loss of Confidentiality, Integrity, and/or Availability.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

EDK2 contains an overflow vulnerability in the PeCoffLoaderRelocateImage() function used for loading PE/COFF executables in UEFI firmware. The overflow can cause memory corruption when processing specially crafted images, potentially allowing an attacker with adjacent network access to impact confidentiality, integrity, and availability.

MitigationApply the EDK2 security update that patches PeCoffLoaderRelocateImage(). Deploy the updated UEFI/BIOS firmware from the system vendor. Consider network segmentation to limit adjacent attack surface until patching is complete.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Adjacent
Complexity
High
Privileges
Low
User interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
High
Availability
Low

CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check UEFI firmware version
    Access system BIOS/UEFI setup (typically press Del, F2, or F12 at boot) and note the firmware version, or use tools like 'dmidecode -s bios-version' on Linux or 'Get-PnpDevice' on Windows to retrieve firmware version information
    Affected if The installed firmware version is older than the patched version released by your system vendor for this CVE
  2. Identify the firmware vendor
    Note the system manufacturer (OEM) and system model - EDK2 is used by many vendors but patches are distributed through vendor-specific BIOS/UEFI updates
    Affected if You cannot determine the system vendor or are running custom/unsigned firmware not sourced from an OEM
  3. Confirm PE/COFF image loading is in use
    This is a core UEFI function - check if the system uses standard UEFI boot (most systems do). The vulnerability affects any attempt to load PE/COFF executables via the PeCoffLoaderRelocateImage function during firmware operation
    Affected if The system uses EDK2-based UEFI firmware and loads PE/COFF images during boot or runtime (this is standard behavior)
  4. Check for adjacent network exposure
    Evaluate whether the system has network connectivity accessible to adjacent attackers (Bluetooth, Wi-Fi, Ethernet in shared network segments)
    Affected if The system has adjacent network attack surface that could be used to deliver a specially crafted PE/COFF image
  5. Verify firmware update availability
    Visit the system vendor support website and search for BIOS/firmware updates related to CVE-2024-38796 or the PeCoffLoaderRelocateImage overflow
    Affected if A firmware update exists for your system but has not been applied, or no update is yet available from your vendor

You are affected if your system uses EDK2-based UEFI firmware and an official security patch for this CVE has not been applied, regardless of whether you can confirm the exact version range.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Apply the EDK2 security update that patches PeCoffLoaderRelocateImage(). Deploy the updated UEFI/BIOS firmware from the system vendor. Consider network segmentation to limit adjacent attack surface until patching is complete.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation16.0 h
  • Testing12.0 h
  • Review / QA8.0 h
40.0 hours of engineering $6,920
Get help mitigating

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $11,072.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2024-38796 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2024-38796 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data