Vulnerabilities / CVE-2021-38578

critical

CVE-2021-38578

edk2: integer underflow in SmmEntryPoint function leads to potential SMM privilege escalation

Published Modified CWE 124, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.4CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:L

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by AlmaLinux (high), Amazon (high), Oracle (high), Red Hat (medium), Ubuntu (medium).

Description

Existing CommBuffer checks in SmmEntryPoint will not catch underflow when computing BufferSize.

Affected packages and fixed versions

SourcePackageFixed in
alma 9edk2-aarch64, edk2-ovmf, edk2-tools and 1 more20221207gitfff6d81270b5-9.el9_2
amazon linux 2edk2-aarch64, edk2-debuginfo, edk2-ovmf and 2 more20240813-296.amzn2
debian 10edk2no fix listed
debian 11edk22020.11-2+deb11u3
debian 12edk22022.11-1
debian 13edk22022.11-1
debian 14edk22022.11-1
echoedk22022.11-1
Oracle Linux 9edk2-aarch64, edk2-ovmf, edk2-tools and 1 more20221207gitfff6d81270b5-9.el9_2
rapidfort alpine 3.20edk2no fix listed
rapidfort alpine 3.21edk2no fix listed
rapidfort alpine 3.22edk2no fix listed
Show all 36 entries from 21 sources
SourcePackageFixed in
alma 9edk2-aarch6420221207gitfff6d81270b5-9.el9_2
alma 9edk2-ovmf20221207gitfff6d81270b5-9.el9_2
alma 9edk2-tools20221207gitfff6d81270b5-9.el9_2
alma 9edk2-tools-doc20221207gitfff6d81270b5-9.el9_2
amazon linux 2edk2-aarch6420240813-296.amzn2
amazon linux 2edk2-debuginfo20240813-296.amzn2
amazon linux 2edk2-ovmf20240813-296.amzn2
amazon linux 2edk2-tools20240813-296.amzn2
amazon linux 2edk2-tools-doc20240813-296.amzn2
debian 10edk2no fix listed
debian 11edk22020.11-2+deb11u3
debian 12edk22022.11-1
debian 13edk22022.11-1
debian 14edk22022.11-1
echoedk22022.11-1
Oracle Linux 9edk2-aarch6420221207gitfff6d81270b5-9.el9_2
Oracle Linux 9edk2-ovmf20221207gitfff6d81270b5-9.el9_2
Oracle Linux 9edk2-tools20221207gitfff6d81270b5-9.el9_2
Oracle Linux 9edk2-tools-doc20221207gitfff6d81270b5-9.el9_2
rapidfort alpine 3.20edk2no fix listed
rapidfort alpine 3.21edk2no fix listed
rapidfort alpine 3.22edk2no fix listed
rapidfort alpine 3.23edk2no fix listed
rapidfort alpine 3.24edk2no fix listed
rapidfort Oracle Linux 9edk2-ovmf0:20221207gitfff6d81270b5-9.el9_2
Red HatAAVMFno fix listed
Red HatOVMFno fix listed
Red Hatedk2no fix listed
Red Hatedk2-aarch64no fix listed
Red Hatedk2-ovmfno fix listed
Red Hatovmfno fix listed
ubuntu 16.04-ESMedk20~20160408.ffea0a2c-2ubuntu0.2+esm3
ubuntu 18.04-ESMedk20~20180205.c0d9813c-2ubuntu0.3+esm2
ubuntu 20.04edk20~20191122.bd85bf54-2ubuntu3.6
ubuntu 20.04-ESMedk20~20191122.bd85bf54-2ubuntu3.6
ubuntu 22.04edk22022.02-3ubuntu0.22.04.3

References

All 17 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.