You need to agree to share your contact information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this dataset content.

YAML Metadata Warning:empty or missing yaml metadata in repo card

Check out the documentation for more information.

SEGV in tflite-xnnpack (id:002059,sig:11,src:016226,time:397301035,execs:818499319,op:havoc,rep:2)

Severity: medium CWE: CWE-119 Target: tflite-xnnpack Generated: 2026-02-27

Summary

SEGV in tflite-xnnpack (id:002059,sig:11,src:016226,time:397301035,execs:818499319,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 (1380 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/core/subgraph.cc:337:21: 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:337:21 in 
/home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/assign_variable.cc:56:21: runtime error: load of null pointer of type 'int32_t' (aka 'int')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/assign_variable.cc:56:21 in 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==2388367==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x64329995d697 bp 0x7fffae094390 sp 0x7fffae094300 T0)
==2388367==The signal is caused by a READ memory access.
==2388367==Hint: address points to the zero page.
    #0 0x64329995d697 in tflite::ops::builtin::assign_variable::Eval(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/assign_variable.cc:56:21
    #1 0x64329974e064 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18
    #2 0x64329974aec0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17
    #3 0x64329968ebb6 in tflite::impl::Interpreter::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:243:3
    #4 0x64329960d749 in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2.cpp:29:18
    #5 0x64329960c80a in main (/home/lab/huntr/harnesses/tflite/fuzz_tflite_xnnpack_v2+0x9f880a) (BuildId: 379682ff8803bcfee7b5e3bcbfcfe3d55390c609)
    #6 0x717a4902a1c9 in __libc_start_call_main csu/../sysdeps/nptl/libc_start_call_main.h:58:16
    #7 0x717a4902a28a in __libc_start_main csu

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