Skip to content
Fencer Vulns
medium 5.9

CVE-2024-38796 json

Integer overflow in PeCoffLoaderRelocateImage

published 2024-09-27 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-37812

cvss
5.9
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.4%
EPSS 0.4% chance of exploitation in 30 days, percentile 31%
public exploits
0
none known

Summary

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.

Patch / fix

  • edk2 Debian 12 2022.11-6+deb12u2
  • edk2 Debian 14, Debian 13 2024.08-3

debian advisories DEBIAN-CVE-2024-38796

  • edk2 Ubuntu 22.04 LTS 2022.02-3ubuntu0.22.04.4
  • edk2 Ubuntu 24.04 LTS 2024.02-2ubuntu0.6

ubuntu advisories UBUNTU-CVE-2024-38796

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • edk2 RHEL 9 20240524-6.el9_5.3
  • edk2-ovmf RHEL 9 20240524-6.el9_5.3
  • edk2-tools RHEL 9 20240524-6.el9_5.3
  • edk2-aarch64 RHEL 9 20240524-6.el9_5.3
  • edk2 RHEL 8 20220126gitbb1bba3d77-13.el8_10.4
  • edk2-ovmf RHEL 8 20220126gitbb1bba3d77-13.el8_10.4
  • edk2-aarch64 RHEL 8 20220126gitbb1bba3d77-13.el8_10.4
  • edk2 RHEL 8.6 TUS, RHEL 8.6 E4S, RHEL 8.6 AUS 20220126gitbb1bba3d77-2.el8_6.7

red hat advisories RHSA-2024:11219RHSA-2024:11194RHSA-2024:11185RHSA-2024:10268RHSA-2024:10272RHSA-2024:9956

  • edk2-ovmf AlmaLinux 8 20220126gitbb1bba3d77-13.el8_10.4
  • edk2-aarch64 AlmaLinux 8 20220126gitbb1bba3d77-13.el8_10.4
  • edk2-ovmf AlmaLinux 9 20240524-6.el9_5.3
  • edk2-tools AlmaLinux 9 20240524-6.el9_5.3
  • edk2-aarch64 AlmaLinux 9 20240524-6.el9_5.3

almalinux advisories ALSA-2024:11185ALSA-2024:11219

  • edk2 Rocky Linux 8 20220126gitbb1bba3d77-13.el8_10.4
  • edk2 Rocky Linux 9 20240524-6.el9_5.3

rocky linux advisories RLSA-2024:11185RLSA-2024:11219

  • edk2 Azure Linux 3.0 20240524git3e722403cd16-8
  • hvloader CBL-Mariner 2.0 1.0.1-13
  • edk2 CBL-Mariner 2.0 20230301gitf80f052277c8-42

azure linux advisories AZL-49710AZL-49713AZL-49716

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-38796 updated cvss 5.9

edk2: Integer overflows in PeCoffLoaderRelocateImage

  • Red Hat CodeReady Linux Builder (v. 9) edk2-ovmf 20240524-6.el9_5.3, edk2-tools 20240524-6.el9_5.3, edk2-aarch64 20240524-6.el9_5.3
    fixed: vendor fix RHSA-2024:11219
  • Red Hat CodeReady Linux Builder EUS (v.9.2) edk2-ovmf 20221207gitfff6d81270b5-9.el9_2.5, edk2-tools 20221207gitfff6d81270b5-9.el9_2.5, edk2-aarch64 20221207gitfff6d81270b5-9.el9_2.5
    fixed: vendor fix RHSA-2024:9956
  • Red Hat CodeReady Linux Builder EUS (v.9.4) edk2-ovmf 20231122-6.el9_4.6, edk2-tools 20231122-6.el9_4.6, edk2-aarch64 20231122-6.el9_4.6
    fixed: vendor fix RHSA-2024:9921
  • Red Hat Enterprise Linux AppStream (v. 8) edk2 20220126gitbb1bba3d77-13.el8_10.4, edk2-ovmf 20220126gitbb1bba3d77-13.el8_10.4, edk2-aarch64 20220126gitbb1bba3d77-13.el8_10.4
    fixed: vendor fix RHSA-2024:11185
  • Red Hat Enterprise Linux AppStream (v. 9) edk2 20240524-6.el9_5.3, edk2-ovmf 20240524-6.el9_5.3, edk2-aarch64 20240524-6.el9_5.3
    fixed: vendor fix RHSA-2024:11219
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) edk2 20190829git37eef91017ad-9.el8_2.6, edk2-ovmf 20190829git37eef91017ad-9.el8_2.6
    fixed: vendor fix RHSA-2024:9946
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) edk2 20200602gitca407c7246bf-4.el8_4.7, edk2-ovmf 20200602gitca407c7246bf-4.el8_4.7
    fixed: vendor fix RHSA-2024:10272
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) edk2 20220126gitbb1bba3d77-2.el8_6.7, edk2-ovmf 20220126gitbb1bba3d77-2.el8_6.7
    fixed: vendor fix RHSA-2024:11194
show 9 more
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) edk2 20200602gitca407c7246bf-4.el8_4.7, edk2-ovmf 20200602gitca407c7246bf-4.el8_4.7
    fixed: vendor fix RHSA-2024:10272
  • Red Hat Enterprise Linux AppStream E4S (v.8.6) edk2 20220126gitbb1bba3d77-2.el8_6.7, edk2-ovmf 20220126gitbb1bba3d77-2.el8_6.7, edk2-aarch64 20220126gitbb1bba3d77-2.el8_6.7
    fixed: vendor fix RHSA-2024:11194
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) edk2 20220126gitbb1bba3d77-3.el9_0.6, edk2-ovmf 20220126gitbb1bba3d77-3.el9_0.6, edk2-aarch64 20220126gitbb1bba3d77-3.el9_0.6
    fixed: vendor fix RHSA-2024:9930
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) edk2 20220126gitbb1bba3d77-4.el8_8.7, edk2-ovmf 20220126gitbb1bba3d77-4.el8_8.7, edk2-aarch64 20220126gitbb1bba3d77-4.el8_8.7
    fixed: vendor fix RHSA-2024:10268
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) edk2 20221207gitfff6d81270b5-9.el9_2.5, edk2-ovmf 20221207gitfff6d81270b5-9.el9_2.5, edk2-aarch64 20221207gitfff6d81270b5-9.el9_2.5
    fixed: vendor fix RHSA-2024:9956
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) edk2 20231122-6.el9_4.6, edk2-ovmf 20231122-6.el9_4.6, edk2-aarch64 20231122-6.el9_4.6
    fixed: vendor fix RHSA-2024:9921
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) edk2 20200602gitca407c7246bf-4.el8_4.7, edk2-ovmf 20200602gitca407c7246bf-4.el8_4.7
    fixed: vendor fix RHSA-2024:10272
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) edk2 20220126gitbb1bba3d77-2.el8_6.7, edk2-ovmf 20220126gitbb1bba3d77-2.el8_6.7
    fixed: vendor fix RHSA-2024:11194
  • Red Hat Enterprise Linux 10 edk2
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.37% chance of exploitation in the next 30 days, higher than 31% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.9 CVSS:3.1/AV:A/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L

Affected products

  • TianoCore EDK2

Classification

Weakness
  • CWE-122 Heap-based Buffer Overflow

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.