# SEGV in tflite-invoke (id:000802,sig:06,src:037388,time:37792568,execs:12131137,op:its,rep:1) **Severity:** medium **CWE:** CWE-119 **Target:** tflite-invoke **Generated:** 2026-02-27 ## Summary SEGV in tflite-invoke (id:000802,sig:06,src:037388,time:37792568,execs:12131137,op:its,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` (644 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/internal/runtime_shape.cc:46:17: runtime error: signed integer overflow: 1920 * 1900544 cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/runtime_shape.cc:46:17 in /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/reference/gather.h:102:45: runtime error: signed integer overflow: 1130 * 1900544 cannot be represented in type 'int' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/reference/gather.h:102:45 in AddressSanitizer:DEADLYSIGNAL ================================================================= ==1304879==ERROR: AddressSanitizer: SEGV on unknown address 0x79dc888822c0 (pc 0x79e1f1fa1377 bp 0x7ffec2492180 sp 0x7ffec2491938 T0) ==1304879==The signal is caused by a READ memory access. #0 0x79e1f1fa1377 in __memcpy_avx512_unaligned_erms string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:287 #1 0x643197e83ff8 in __asan_memcpy (/home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2+0x9b5ff8) (BuildId: 4f58f306b08a16ba0764b768e045054c72b71547) #2 0x643198b0a134 in TfLiteStatus tflite::reference_ops::Gather(tflite::GatherParams const&, tflite::RuntimeShape const&, int const*, tflite::RuntimeShape const&, short const*, tflite::RuntimeShape const&, int*, bool) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/reference/gather.h:109:9 #3 0x643198aff5a7 in TfLiteStatus tflite::ops::builtin::gather::Gather(TfLiteContext*, TfLiteGatherParams const&, TfLiteTensor const*, TfLiteTensor const*, TfLiteTensor*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/gather.cc:163:10 #4 0x643198af7833 in tflite::ops::builtin::gather::EvalImpl(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/gather.cc:277:7 #5 0x643198007e84 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18 #6 0x643198004ce0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17 #7 0x643197f489d6 in tflite::impl::Interpreter:: ``` ## 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.