# SEGV in tflite-invoke (id:000426,sig:06,src:035184,time:16910307,execs:3093164,op:colorization,rep:1) **Severity:** medium **CWE:** CWE-119 **Target:** tflite-invoke **Generated:** 2026-02-27 ## Summary SEGV in tflite-invoke (id:000426,sig:06,src:035184,time:16910307,execs:3093164,op:colorization,rep:1). See ASAN output below for details. ## Reproduction ```bash chmod +x reproduce.sh ./reproduce.sh ``` Or manually: ```bash # Build target with ASAN # Run: poc.tflite ``` ## PoC File - `poc.tflite` (612 bytes) ## ASAN Output ``` /home/lab/huntr/targets/tflite/build-afl/cpuinfo/src/x86/linux/cpuinfo.c:87: note: parse_line defined here SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/build-afl/cpuinfo/src/linux/multiline.c:64:9 in INFO: Created TensorFlow Lite XNNPACK delegate for CPU. ERROR: /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1062 tensor.data.raw != nullptr was not true. /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/tensor_slice_util.cc:53:22: runtime error: reference binding to null pointer of type 'const long' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/tensor_slice_util.cc:53:22 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==502061==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5ec3fb802bd4 bp 0x7ffeed8e4ff0 sp 0x7ffeed8e4f00 T0) ==502061==The signal is caused by a READ memory access. ==502061==Hint: address points to the zero page. #0 0x5ec3fb802bd4 in void std::__new_allocator::construct(long*, long const&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/new_allocator.h:191 #1 0x5ec3fb802bd4 in void std::allocator_traits>::construct(std::allocator&, long*, long const&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/alloc_traits.h:538:8 #2 0x5ec3fb802bd4 in std::vector>::push_back(long const&) /usr/lib/gcc/x86_64-linux-gnu/13/../../../../include/c++/13/bits/stl_vector.h:1286:6 #3 0x5ec3fb802bd4 in std::vector> tflite::ops::builtin::ReadIndexVector(TfLiteTensor const*, tflite::RuntimeShape const&, std::vector> const&, long) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/tensor_slice_util.cc:53:12 #4 0x5ec3fb615b2d in TfLiteStatus tflite::ops::builtin::stablehlo_gather::(anonymous namespace)::EvalWithTypes(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:187:9 #5 0x5ec3fb615b2d in TfLiteStatus tflite::ops::builtin::stablehlo_gather::(anonymous namespace)::EvalWithIndexType(TfLiteContext*, TfLiteNode*, TfLiteType, TfLiteType) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:250:14 #6 0x5ec3fb5d2517 in tflite::ops::builtin::stablehlo_gather::Eval(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:277:12 #7 0x5ec3fa3d2e84 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18 #8 0x5ec3fa3cfce0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17 #9 0x5ec3fa3139d6 in tflite::impl::Interpreter::Invoke( ``` ## Impact Memory corruption vulnerability reachable by processing a malformed tflite-invoke file. An attacker could craft a malicious file and distribute it to cause denial of service or potentially leak sensitive heap data.