YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
SEGV in tflite-xnnpack (id:002072,sig:11,src:027005,time:402050070,execs:827563077,op:havoc,rep:2)
Severity: medium CWE: CWE-119 Target: tflite-xnnpack Generated: 2026-02-27
Summary
SEGV in tflite-xnnpack (id:002072,sig:11,src:027005,time:402050070,execs:827563077,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(644 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/internal/runtime_shape.h:231:57: runtime error: signed integer overflow: 537236064 * 4 cannot be represented in type 'int'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/runtime_shape.h:231:57 in
AddressSanitizer:DEADLYSIGNAL
=================================================================
==4004235==ERROR: AddressSanitizer: SEGV on unknown address 0x7339283329c0 (pc 0x610db01489d4 bp 0x7ffe9e1b5f80 sp 0x7ffe9e1b5de0 T0)
==4004235==The signal is caused by a READ memory access.
#0 0x610db01489d4 in void tflite::optimized_ops::ResizeBilinearGenericSmallChannel<unsigned char>(int, int, int, int, int, int, float, float, tflite::RuntimeShape const&, unsigned char const*, tflite::RuntimeShape const&, unsigned char*, bool) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/optimized/resize_bilinear.h:1603:42
#1 0x610db012ac21 in tflite::optimized_ops::ResizeBilinear(tflite::ResizeBilinearParams const&, tflite::RuntimeShape const&, unsigned char const*, tflite::RuntimeShape const&, int const*, tflite::RuntimeShape const&, unsigned char*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/internal/optimized/resize_bilinear.h:1715:3
#2 0x610db011a6f2 in TfLiteStatus tflite::ops::builtin::resize_bilinear::Eval<(tflite::ops::builtin::resize_bilinear::KernelType)1>(TfLiteContext*, TfLiteNode*) /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/kernels/resize_bilinear.cc:137:7
#3 0x610daf128064 in tflite::Subgraph::InvokeImpl() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1726:18
#4 0x610daf124ec0 in tflite::Subgraph::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/subgraph.cc:1619:17
#5 0x610daf068bb6 in tflite::impl::Interpreter::Invoke() /home/lab/huntr/targets/tflite/tf-src/tensorflow/lite/core/interpreter.cc:243:3
#6 0x610daefe7749 i
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
- 1