YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-invoke (id:002736,sig:11,src:007688,time:406139466,execs:981649324,op:havoc,rep:2)
Severity: medium CWE: CWE-119 Target: tflite-invoke Generated: 2026-02-27
Summary
SEGV in tflite-invoke (id:002736,sig:11,src:007688,time:406139466,execs:981649324,op:havoc,rep:2). 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(1984 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/dequantize.cc:58:3: 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/dequantize.cc:58:3 in
/home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/dequantize.cc:58:3: runtime error: load of null pointer of type 'const TfLiteType'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/dequantize.cc:58:3 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==3986952==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5750c5a5fe6b bp 0x7ffc90893f20 sp 0x7ffc90893ee0 T0)
==3986952==The signal is caused by a READ memory access.
==3986952==Hint: address points to the zero page.
#0 0x5750c5a5fe6b in tflite::ops::builtin::dequantize::Prepare(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/dequantize.cc
#1 0x5750c51b1e4f 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 0x5750c51c7fbb in tflite::Subgraph::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2307:5
#3 0x5750c51cc123 in tflite::Subgraph::ModifyGraphWithDelegate(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2260:17
#4 0x5750c50fee26 in tflite::impl::Interpreter::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:410:24
#5 0x5750c50f6db9 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 0x5750c50f6db9 in tflite::impl::Interpreter::ApplyLazyDelegateProviders() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:346:19
#7 0x5750c50f617f in tflite::impl::Interpreter::AllocateTensors() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:192:7
#8 0x5750c5078476 in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fu
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
- 4