CVE-2021-38578
edk2: integer underflow in SmmEntryPoint function leads to potential SMM privilege escalation
Severity by source
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
| Source | Package | Fixed in |
|---|---|---|
| alma 9 | edk2-aarch64, edk2-ovmf, edk2-tools and 1 more | 20221207gitfff6d81270b5-9.el9_2 |
| amazon linux 2 | edk2-aarch64, edk2-debuginfo, edk2-ovmf and 2 more | 20240813-296.amzn2 |
| debian 10 | edk2 | no fix listed |
| debian 11 | edk2 | 2020.11-2+deb11u3 |
| debian 12 | edk2 | 2022.11-1 |
| debian 13 | edk2 | 2022.11-1 |
| debian 14 | edk2 | 2022.11-1 |
| echo | edk2 | 2022.11-1 |
| Oracle Linux 9 | edk2-aarch64, edk2-ovmf, edk2-tools and 1 more | 20221207gitfff6d81270b5-9.el9_2 |
| rapidfort alpine 3.20 | edk2 | no fix listed |
| rapidfort alpine 3.21 | edk2 | no fix listed |
| rapidfort alpine 3.22 | edk2 | no fix listed |
Show all 36 entries from 21 sources
| Source | Package | Fixed in |
|---|---|---|
| alma 9 | edk2-aarch64 | 20221207gitfff6d81270b5-9.el9_2 |
| alma 9 | edk2-ovmf | 20221207gitfff6d81270b5-9.el9_2 |
| alma 9 | edk2-tools | 20221207gitfff6d81270b5-9.el9_2 |
| alma 9 | edk2-tools-doc | 20221207gitfff6d81270b5-9.el9_2 |
| amazon linux 2 | edk2-aarch64 | 20240813-296.amzn2 |
| amazon linux 2 | edk2-debuginfo | 20240813-296.amzn2 |
| amazon linux 2 | edk2-ovmf | 20240813-296.amzn2 |
| amazon linux 2 | edk2-tools | 20240813-296.amzn2 |
| amazon linux 2 | edk2-tools-doc | 20240813-296.amzn2 |
| debian 10 | edk2 | no fix listed |
| debian 11 | edk2 | 2020.11-2+deb11u3 |
| debian 12 | edk2 | 2022.11-1 |
| debian 13 | edk2 | 2022.11-1 |
| debian 14 | edk2 | 2022.11-1 |
| echo | edk2 | 2022.11-1 |
| Oracle Linux 9 | edk2-aarch64 | 20221207gitfff6d81270b5-9.el9_2 |
| Oracle Linux 9 | edk2-ovmf | 20221207gitfff6d81270b5-9.el9_2 |
| Oracle Linux 9 | edk2-tools | 20221207gitfff6d81270b5-9.el9_2 |
| Oracle Linux 9 | edk2-tools-doc | 20221207gitfff6d81270b5-9.el9_2 |
| rapidfort alpine 3.20 | edk2 | no fix listed |
| rapidfort alpine 3.21 | edk2 | no fix listed |
| rapidfort alpine 3.22 | edk2 | no fix listed |
| rapidfort alpine 3.23 | edk2 | no fix listed |
| rapidfort alpine 3.24 | edk2 | no fix listed |
| rapidfort Oracle Linux 9 | edk2-ovmf | 0:20221207gitfff6d81270b5-9.el9_2 |
| Red Hat | AAVMF | no fix listed |
| Red Hat | OVMF | no fix listed |
| Red Hat | edk2 | no fix listed |
| Red Hat | edk2-aarch64 | no fix listed |
| Red Hat | edk2-ovmf | no fix listed |
| Red Hat | ovmf | no fix listed |
| ubuntu 16.04-ESM | edk2 | 0~20160408.ffea0a2c-2ubuntu0.2+esm3 |
| ubuntu 18.04-ESM | edk2 | 0~20180205.c0d9813c-2ubuntu0.3+esm2 |
| ubuntu 20.04 | edk2 | 0~20191122.bd85bf54-2ubuntu3.6 |
| ubuntu 20.04-ESM | edk2 | 0~20191122.bd85bf54-2ubuntu3.6 |
| ubuntu 22.04 | edk2 | 2022.02-3ubuntu0.22.04.3 |
References
- https://access.redhat.com/errata/RHSA-2023:2165
- https://access.redhat.com/security/cve/CVE-2021-38578
- https://bugzilla.redhat.com/1960321
- https://bugzilla.redhat.com/2164440
- https://bugzilla.redhat.com/2164487
- https://bugzilla.redhat.com/2164492
- https://bugzilla.redhat.com/2164494
- https://bugzilla.tianocore.org/show_bug.cgi?id=3387
All 17 references
- https://edk2.groups.io/g/devel/message/90516
- https://errata.almalinux.org/9/ALSA-2023-2165.html
- https://linux.oracle.com/cve/CVE-2021-38578.html
- https://linux.oracle.com/errata/ELSA-2023-2165.html
- https://lists.debian.org/debian-lts-announce/2025/06/msg00007.html
- https://nvd.nist.gov/vuln/detail/CVE-2021-38578
- https://ubuntu.com/security/notices/USN-7060-1
- https://www.cve.org/CVERecord?id=CVE-2021-38578
- https://www.insyde.com/security-pledge/SA-2023024