CVE-2026-29775: Target Exact Allocation For Vulnerable Cache Cells

The 'cells' structure member is allocated exactly to a defined maximum number of elements without padding. If index guards are off-by-one (as noted in FreeRDP CVE-2026-29775), this direct allocation enables heap out-of-bounds memory access. Ensure the element count is properly padded (e.g., + 1) to mitigate potential off-by-one access violations.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0C
greprules fetch cve-2026-29775-target-exact-allocation-for-vulnerable-cache-cells --engine opengrep

Description

The 'cells' structure member is allocated exactly to a defined maximum number of elements without padding. If index guards are off-by-one (as noted in FreeRDP CVE-2026-29775), this direct allocation enables heap out-of-bounds memory access. Ensure the element count is properly padded (e.g., + 1) to mitigate potential off-by-one access violations.