Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2022-36763
NixOS vulnerability analysis and mitigation

Overview

EDK2 contains a vulnerability in the Tcg2MeasureGptTable() function (CVE-2022-36763) that was disclosed in January 2024. The vulnerability allows a user to trigger a heap buffer overflow via a local network by exploiting inadequate validation of the GPT Primary Header (TianoCore Advisory).

Technical details

The vulnerability stems from a lack of validation checks for integer overflows when computing NumberOfPartitionEntries * SizeOfPartitionEntry at multiple locations in the Tcg2MeasureGptTable() function. One exploitation path involves overflowing the EventSize computation at line 251 in SecurityPkg/Library/DxeTpm2MeasureBootLib/DxeTpm2MeasureBootLib.c, causing AllocateZeroPool() to return a smaller object than expected, leading to a heap-buffer overflow during partition entry copying. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (High) with vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:H (TianoCore Advisory).

Impact

The vulnerability can lead to arbitrary code execution in the DXE phase through various attack vectors: corrupting PREV-NEXT pointers for unlink() attacks, overwriting UEFI application code directly through the heap-buffer overflow, or modifying pointers in the BootServices table. By default, all memory is RWX, making this a particularly powerful exploit primitive (TianoCore Advisory).

Mitigation and workarounds

Patch files were made available through the TianoCore bugzilla (Bug #4117) and were integrated into the February 2024 EDK2 release. Various Linux distributions have also released security updates to address this vulnerability, including Red Hat Enterprise Linux and Fedora (Red Hat Advisory, Fedora Update).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management