You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

Misaligned memory access in tensor FQN parsing via crafted .pte external tensor

Vulnerability

ExecuTorch .pte model file that triggers a crash during Program::load_method().

CWE: CWE-476 (NULL Pointer Dereference) / CWE-125 (Out-of-bounds Read) Tested on: ExecuTorch commit a17428b

Reproduction

git clone https://github.com/pytorch/executorch
cd executorch && git checkout a17428b
git submodule update --init
mkdir cmake-out && cd cmake-out
cmake .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
  -DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" \
  -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer" \
  -DEXECUTORCH_BUILD_EXTENSION_DATA_LOADER=ON \
  -DEXECUTORCH_BUILD_EXTENSION_MODULE=ON
cmake --build . -j$(nproc)

# Run with the PoC file
./executor_runner --model_path poc.pte

Files

  • poc.pte — Crafted .pte file (668 bytes) that triggers the crash
Downloads last month
7