CVE-2026-2016: Padding Underflow Out Of Bounds

An unvalidated padding count is subtracted from a calculated length (often a pointer difference) and subsequently used as an array index or pointer offset. An attacker could provide an excessively large padding count causing integer underflow, yielding an out-of-bounds write (e.g., during null termination). Validate the padding count against expected maximum

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-2016-padding-underflow-out-of-bounds --engine opengrep

Description

An unvalidated padding count is subtracted from a calculated length (often a pointer difference) and subsequently used as an array index or pointer offset. An attacker could provide an excessively large padding count causing integer underflow, yielding an out-of-bounds write (e.g., during null termination). Validate the padding count against expected maximum