# Heap-buffer-overflow WRITE (4 bytes) in TFLite MATRIX_DIAG kernel via crafted .tflite model ## Reproduction ### Python API ```python import tensorflow as tf interpreter = tf.lite.Interpreter(model_path="poc.tflite") interpreter.allocate_tensors() interpreter.invoke() # CRASH ``` ### C++ (ASAN build) See `reproduce.sh` for full build instructions. ## Files - `poc.tflite` — Crafted TFLite model that triggers the vulnerability - `reproduce.sh` — Full reproduction script (clone, build with ASAN, run)