YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-invoke (id:002737,sig:11,src:009542+013179,time:406318806,execs:982030100,op:splice,rep:7)
Severity: medium CWE: CWE-119 Target: tflite-invoke Generated: 2026-02-27
Summary
SEGV in tflite-invoke (id:002737,sig:11,src:009542+013179,time:406318806,execs:982030100,op:splice,rep:7). See ASAN output below for details.
Reproduction
chmod +x reproduce.sh
./reproduce.sh
Or manually:
# Build target with ASAN
# Run: <target> poc.tflite
PoC File
poc.tflite(561 bytes)
ASAN Output
/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/atan2.cc:47:3: runtime error: member access within null pointer of type 'TfLiteTensor'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/atan2.cc:47:3 in
/home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/atan2.cc:47:3: runtime error: load of null pointer of type 'TfLiteType'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/atan2.cc:47:3 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3986725==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5c0faf0514fa bp 0x7ffdccd77ae0 sp 0x7ffdccd77a90 T0)
==3986725==The signal is caused by a READ memory access.
==3986725==Hint: address points to the zero page.
#0 0x5c0faf0514fa in tflite::ops::builtin::atan2::Atan2Prepare(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/atan2.cc
#1 0x5c0faee38e4f in tflite::Subgraph::PrepareOpsStartingAt(int, std::vector<int, std::allocator<int>> const&, int*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1508:44
#2 0x5c0faee4efbb in tflite::Subgraph::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2307:5
#3 0x5c0faee53123 in tflite::Subgraph::ModifyGraphWithDelegate(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2260:17
#4 0x5c0faed85e26 in tflite::impl::Interpreter::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:410:24
#5 0x5c0faed7ddb9 in TfLiteStatus tflite::impl::Interpreter::ModifyGraphWithDelegateImpl<TfLiteDelegate, void (*)(TfLiteDelegate*)>(std::unique_ptr<TfLiteDelegate, void (*)(TfLiteDelegate*)>&&) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.h:861:12
#6 0x5c0faed7ddb9 in tflite::impl::Interpreter::ApplyLazyDelegateProviders() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:346:19
#7 0x5c0faed7d17f in tflite::impl::Interpreter::AllocateTensors() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:192:7
#8 0x5c0faecff476 in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2.cpp:18:22
#9
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.
- Downloads last month
- 3