# SEGV in tflite-invoke (id:000436,sig:06,src:020172,time:17079608,execs:3153297,op:colorization,rep:1) **Severity:** medium **CWE:** CWE-119 **Target:** tflite-invoke **Generated:** 2026-02-27 ## Summary SEGV in tflite-invoke (id:000436,sig:06,src:020172,time:17079608,execs:3153297,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` (496 bytes) ## ASAN Output ``` SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/build-afl/cpuinfo/src/linux/multiline.c:85:11 in /home/lab/huntr/targets/tflite/build-afl/cpuinfo/src/linux/multiline.c:64:9: runtime error: call to function parse_line through pointer to incorrect function type 'bool (*)(const char *, const char *, void *, unsigned long)' /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. /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/kernel_util.h:204:18: runtime error: member access within null pointer of type 'const TfLiteTensor' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/kernel_util.h:204:18 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==500775==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000020 (pc 0x63010e056857 bp 0x7ffc3e5855c0 sp 0x7ffc3e5854e0 T0) ==500775==The signal is caused by a READ memory access. ==500775==Hint: address points to the zero page. #0 0x63010e056857 in tflite::IsConstantOrPersistentTensor(TfLiteTensor const*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/kernel_util.h #1 0x63010e056857 in tflite::ops::builtin::reshape::Prepare(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/reshape.cc:162:11 #2 0x63010d067e4f in tflite::Subgraph::PrepareOpsStartingAt(int, std::vector> const&, int*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1508:44 #3 0x63010d07dfbb in tflite::Subgraph::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2307:5 #4 0x63010d082123 in tflite::Subgraph::ModifyGraphWithDelegate(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2260:17 #5 0x63010cfb4e26 in tflite::impl::Interpreter::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:410:24 #6 0x63010cfacdb9 in TfLiteStatus tflite::impl::Interpreter::ModifyGraphWithDelegateImpl(std::unique_ptr&&) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.h:861:12 #7 0x63010cfacdb9 in tflite::impl::Interpreter::ApplyLazyDelegateProviders() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:346:19 #8 0x63010cfac17f in tflite::impl::Interpreter::AllocateTensors() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:192:7 #9 0x63010cf2e476 in LLVMFuzzerTestOneInput /home/lab/huntr/harness ``` ## 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.