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.

Caffe (.caffemodel) Integer Overflow PoC

CWE-190/CWE-122: TileLayer int overflow -> heap-overflow WRITE + im2col stack-overflow WRITE

Bug 1: TileLayer (headline)

tiles=1073741825 with shape(axis)=4: product overflows int32 to 4. Reshape allocates 16 bytes. Forward_cpu iterates 1073741825 times writing past the buffer. Attacker controls overflow content via weights.

Bug 2: im2col

pad_h=1073741823: 2*pad_h overflows int32. Output dimension computation wraps, causing OOB write in the im2col column buffer.

Build & Run

# In Caffe source tree, build with ASAN:
g++ -std=c++14 -fsanitize=address -g -O0 -DCPU_ONLY -Iinclude harness_tile.cpp -o harness_tile
g++ -std=c++14 -fsanitize=address -g -O0 -DCPU_ONLY -Iinclude harness_im2col.cpp -o harness_im2col
./harness_tile    # heap-buffer-overflow WRITE
./harness_im2col  # stack-buffer-overflow WRITE
Downloads last month
33