CVE-2026-48682: Cpp Unvalidated Ihl Pointer Advance

Pointer arithmetic is applied directly using a parsed IP header length (IHL) without bounds checking. This can advance the pointer past the end of the packet buffer, resulting in an out-of-bounds read or type confusion. Compute the header offset into a variable and validate it against the buffer boundaries before evaluating the pointer advancement.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0C++
greprules fetch cve-2026-48682-cpp-unvalidated-ihl-pointer-advance --engine opengrep

Description

Pointer arithmetic is applied directly using a parsed IP header length (IHL) without bounds checking. This can advance the pointer past the end of the packet buffer, resulting in an out-of-bounds read or type confusion. Compute the header offset into a variable and validate it against the buffer boundaries before evaluating the pointer advancement.