Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

TFLite (.tflite) Integer Overflow PoC

CWE-190/CWE-125: offset+size uint64_t overflow in interpreter_builder.cc:671 -> OOB READ

Bug

Buffer offset and size (both uint64_t from flatbuffer) overflow when added in bounds check at interpreter_builder.cc:671. The overflowed sum passes the check, but the original offset is used for pointer arithmetic, yielding an OOB pointer.

Example: offset=0xFFFFFFFFFFFFFF00, size=0x200 -> offset+size=0x100 (overflows) -> check passes -> pointer goes 18 EB past buffer.

Second instance at line 378-380 for large_custom_options_offset + large_custom_options_size.

Build & Run

g++ -std=c++17 -fsanitize=address -g -O0 -o harness harness.cpp
./harness        # Buffer offset overflow -> SEGV
./harness custom # large_custom_options overflow -> heap-OOB
./harness heap   # Buffer offset heap-buffer-overflow

ASAN Output

==ERROR: AddressSanitizer: heap-buffer-overflow on address 0x...
READ of size 1 at 0x... thread T0

Verification NOT invoked by default in InterpreterBuilder.

Downloads last month
30