YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-invoke (id:000816,sig:06,src:006796,time:38610059,execs:12467505,op:colorization,rep:16)
Severity: medium CWE: CWE-119 Target: tflite-invoke Generated: 2026-02-27
Summary
SEGV in tflite-invoke (id:000816,sig:06,src:006796,time:38610059,execs:12467505,op:colorization,rep:16). 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(544 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: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/fake_quant.cc:58:70: 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/fake_quant.cc:58:70 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1303903==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x610f773aae00 bp 0x7fffe213ad60 sp 0x7fffe213ad20 T0)
==1303903==The signal is caused by a READ memory access.
==1303903==Hint: address points to the zero page.
#0 0x610f773aae00 in tflite::ops::builtin::fake_quant::Prepare(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/fake_quant.cc:58:70
#1 0x610f769ffe4f 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 0x610f76a15fbb in tflite::Subgraph::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2307:5
#3 0x610f76a1a123 in tflite::Subgraph::ModifyGraphWithDelegate(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2260:17
#4 0x610f7694ce26 in tflite::impl::Interpreter::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:410:24
#5 0x610f76944db9 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 0x610f76944db9 in tflite::impl::Interpreter::ApplyLazyDelegateProviders() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:346:19
#7 0x610f7694417f in tflite::impl::Interpreter::AllocateTensors() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:192:7
#8 0x610f768c6476 in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2.cpp:18:22
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