Out-of-bounds access
A class of defect in which code reads or writes a buffer based on an unvalidated length, offset, or index, thereby accessing memory outside the buffer. It can lead to crashes or privilege escalation.
Timeline (last 90 days)
Out-of-bounds access is one of the most common and most dangerous defect types in filesystem parsers; when code reads or writes buffers based on lengths, offsets, or indices declared in the volume without first checking whether those values fall within valid ranges, it may access memory outside the buffer.
Typical protections against out-of-bounds access are validating the consistency of lengths and offsets before allocating memory and copying data, and explicitly checking for overflows such as multiplication or addition wraparound.
All Facts (2)
Out-of-bounds access is one of the most common and most dangerous defect types in filesystem parsers; when code reads or writes buffers based on lengths, offsets, or indices declared in the volume without first checking whether those values fall within valid ranges, it may access memory outside the buffer.
50%UnverifiedTypical protections against out-of-bounds access are validating the consistency of lengths and offsets before allocating memory and copying data, and explicitly checking for overflows such as multiplication or addition wraparound.
50%