CVE-2026-54000: Unchecked Peb Length Readprocessmemory

Directly using an unvalidated structure length (e.g., a UNICODE_STRING Length from a target process's PEB) as the size argument to memory read functions can result in a heap buffer overflow. Attackers can inflate PEB string lengths (e.g., CommandLine.Length) up to USHORT_MAX (65535 bytes). Bounds should always be explicitly clamped or checked against the des

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C++
greprules fetch cve-2026-54000-unchecked-peb-length-readprocessmemory --engine opengrep

Description

Directly using an unvalidated structure length (e.g., a UNICODE_STRING Length from a target process's PEB) as the size argument to memory read functions can result in a heap buffer overflow. Attackers can inflate PEB string lengths (e.g., CommandLine.Length) up to USHORT_MAX (65535 bytes). Bounds should always be explicitly clamped or checked against the des