CVE-2026-44978: Stream Padding Underflow

Missing validation of padding length before subtracting from stream end pointer. This can lead to a pointer underflow and subsequent negative length calculation, resulting in a heap out-of-bounds read. Ensure that the padding is checked against the available buffer span before it is subtracted from the end pointer.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-44978-stream-padding-underflow --engine opengrep

Description

Missing validation of padding length before subtracting from stream end pointer. This can lead to a pointer underflow and subsequent negative length calculation, resulting in a heap out-of-bounds read. Ensure that the padding is checked against the available buffer span before it is subtracted from the end pointer.