YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-xnnpack (id:002081,sig:11,src:021237,time:410143925,execs:845555999,op:havoc,rep:6)
Severity: medium CWE: CWE-119 Target: tflite-xnnpack Generated: 2026-02-27
Summary
SEGV in tflite-xnnpack (id:002081,sig:11,src:021237,time:410143925,execs:845555999,op:havoc,rep:6). 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(1502 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/core/subgraph.cc:653:34: runtime error: null pointer passed as argument 2, 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/core/subgraph.cc:653:34 in
/home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/var_handle.cc:76:10: 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/var_handle.cc:76:10 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==1298501==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5e727d7cdf58 bp 0x7ffd7115b070 sp 0x7ffd7115b000 T0)
==1298501==The signal is caused by a WRITE memory access.
==1298501==Hint: address points to the zero page.
#0 0x5e727d7cdf58 in tflite::ops::builtin::var_handle::Eval(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/var_handle.cc:76:3
#1 0x5e727c1aa064 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18
#2 0x5e727c1a6ec0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17
#3 0x5e727c0eabb6 in tflite::impl::Interpreter::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:243:3
#4 0x5e727c069749 in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2.cpp:29:18
#5 0x5e727c06880a in main (/home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2+0x9f880a) (BuildId: 379682ff8803bcfee7b5e3bcbfcfe3d55390c609)
#6 0x751881c2a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
#7 0x751881c2a28a in __libc_start_main csu/../csu/libc-start.c:360:3
#8 0x5e727bf89d04 in _start (/home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2+0x919d04) (BuildId: 379682ff8803bcfee7b5e3b
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
- 5