YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-xnnpack (id:002055,sig:11,src:026785,time:392815692,execs:806792001,op:havoc,rep:1)
Severity: medium CWE: CWE-119 Target: tflite-xnnpack Generated: 2026-02-27
Summary
SEGV in tflite-xnnpack (id:002055,sig:11,src:026785,time:392815692,execs:806792001,op:havoc,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(644 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/reshape.cc:166:16: runtime error: null pointer passed as argument 1, which is declared to never be null
/usr/include/string.h:44:28: note: nonnull attribute specified here
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/reshape.cc:166:16 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2388567==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x7e39a99a13fa bp 0x7ffdf14a9b70 sp 0x7ffdf14a9328 T0)
==2388567==The signal is caused by a WRITE memory access.
==2388567==Hint: address points to the zero page.
#0 0x7e39a99a13fa in __memcpy_avx512_unaligned_erms string/../sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S:366
#1 0x5d902ff78ff8 in __asan_memcpy (/home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2+0x9b5ff8) (BuildId: 379682ff8803bcfee7b5e3bcbfcfe3d55390c609)
#2 0x5d90310e4fde in tflite::ops::builtin::reshape::Prepare(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/reshape.cc:166:9
#3 0x5d90300f602f 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
#4 0x5d903010c19b in tflite::Subgraph::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2307:5
#5 0x5d9030110303 in tflite::Subgraph::ModifyGraphWithDelegate(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:2260:17
#6 0x5d9030043006 in tflite::impl::Interpreter::ModifyGraphWithDelegateImpl(TfLiteDelegate*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:410:24
#7 0x5d9030088375 in tflite::impl::InterpreterBuilder::ApplyDelegates(tflite::impl::Interpreter*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter_builder.cc:729:5
#8 0x5d903008f456 in tflite::impl::InterpreterBuilder::operator()(std::unique_ptr<tflite::impl::Interpreter, std::default_delete<tflite::impl::Interpreter>>*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter_builder.cc:899:25
#9 0x5d902ffbc332 in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2.cpp:21:9
#10 0x5d902ffbb80a in main (/home/lab/huntr/
Impact
Memory corruption vulnerability reachable by processing a malformed tflite-xnnpack 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