YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-invoke (id:000427,sig:06,src:035184,time:16912070,execs:3093330,op:colorization,rep:1)
Severity: medium CWE: CWE-119 Target: tflite-invoke Generated: 2026-02-27
Summary
SEGV in tflite-invoke (id:000427,sig:06,src:035184,time:16912070,execs:3093330,op:colorization,rep:1). 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(612 bytes)
ASAN Output
/home/lab/huntr/targets/tflite/build-afl/cpuinfo/src/linux/multiline.c:85:11: 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: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/stablehlo_gather.cc:216:5: runtime error: store to null pointer of type 'unsigned long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:216:5 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==501933==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x64856575b28e bp 0x7ffe96e5db90 sp 0x7ffe96e5d9c0 T0)
==501933==The signal is caused by a WRITE memory access.
==501933==Hint: address points to the zero page.
#0 0x64856575b28e in TfLiteStatus tflite::ops::builtin::stablehlo_gather::(anonymous namespace)::EvalWithTypes<long, unsigned long>(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:216:36
#1 0x64856575b28e in TfLiteStatus tflite::ops::builtin::stablehlo_gather::(anonymous namespace)::EvalWithIndexType<long>(TfLiteContext*, TfLiteNode*, TfLiteType, TfLiteType) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:250:14
#2 0x648565717517 in tflite::ops::builtin::stablehlo_gather::Eval(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:277:12
#3 0x648564517e84 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18
#4 0x648564514ce0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17
#5 0x6485644589d6 in tflite::impl::Interpreter::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:243:3
#6 0x6485643d765e in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2.cpp:19:18
#7 0x6485643d680a in main (/home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2+0x9f880a) (BuildId: 4f58f306b08a16ba0764b768e045054c72b715
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