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-invoke (id:000428,sig:06,src:035184,time:16914941,execs:3093854,op:havoc,rep:2)

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

Summary

SEGV in tflite-invoke (id:000428,sig:06,src:035184,time:16914941,execs:3093854,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 (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 'float'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:216:5 in 
AddressSanitizer:DEADLYSIGNAL
=================================================================
==501789==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000000 (pc 0x5f02de82231f bp 0x7ffe493d7650 sp 0x7ffe493d7480 T0)
==501789==The signal is caused by a WRITE memory access.
==501789==Hint: address points to the zero page.
    #0 0x5f02de82231f in TfLiteStatus tflite::ops::builtin::stablehlo_gather::(anonymous namespace)::EvalWithTypes<long, float>(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/stablehlo_gather.cc:216:36
    #1 0x5f02de82231f 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:232:14
    #2 0x5f02de7e7517 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 0x5f02dd5e7e84 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18
    #4 0x5f02dd5e4ce0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17
    #5 0x5f02dd5289d6 in tflite::impl::Interpreter::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:243:3
    #6 0x5f02dd4a765e in LLVMFuzzerTestOneInput /home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2.cpp:19:18
    #7 0x5f02dd4a680a in main (/home/lab/huntr/harnesses/tflite/fuzz_tflite_invoke_v2+0x9f880a) (BuildId: 4f58f306b08a16ba0764b768e045054c72b71547)
    #8 0x717

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
3