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.

Circle (.circle) Ignored Verifier PoC

CWE-252/CWE-125: BaseLoader discards VerifyModelBuffer() return -> OOB READ

Bug

Samsung/ONE BaseLoader.h:1704 calls VerifyModelBuffer() but discards the boolean return value. Proceeds to parse unverified flatbuffer data. Corrupted vector lengths cause OOB reads.

Variant 1: Inflated tensor shape vector (count 2 -> 0x40000000) -> heap-buffer-overflow READ Variant 2: Inflated subgraphs vector (count 1 -> 4096) -> SEGV at unmapped address

Both CircleLoader (.circle) and TFLiteLoader (.tflite) inherit the vulnerable loadModel().

Build & Run

g++ -std=c++17 -fsanitize=address -g -O0 -I gen -I ONE/onert-micro/externals harness.cpp -o harness
./harness    # heap-buffer-overflow READ
./harness 2  # SEGV READ

Fix

One line: if (!VerifyModelBuffer(...)) throw ...;

Downloads last month
30