Skip to content

[tflite-micro] Add signal kernel fuzz targets for OOB/div-by-zero vulnerabilities#15695

Open
foodlook wants to merge 9 commits into
google:masterfrom
foodlook:add-tflite-micro-signal-fuzz
Open

[tflite-micro] Add signal kernel fuzz targets for OOB/div-by-zero vulnerabilities#15695
foodlook wants to merge 9 commits into
google:masterfrom
foodlook:add-tflite-micro-signal-fuzz

Conversation

@foodlook

Copy link
Copy Markdown

Summary

Add OSS-Fuzz project configuration and 6 fuzz targets for tflite-micro signal processing kernels.

These targets exercise the pure signal/src/ functions (OverlapAdd, RFFT, Window, Energy, SpectralSubtraction, PCAN) with attacker-controlled size/index parameters that are not validated by the kernel Prepare functions. All 6 targets produce ASan heap-buffer-overflow crashes within seconds.

Motivation

Reported as Google Issue Tracker #523091874. The reviewer requested OSS-Fuzz reproduction format before reward eligibility.

Files

  • project.yaml — project registration (C++, ASan+UBSan, libFuzzer)
  • Dockerfile — build env (tflite-micro clone + third-party deps)
  • build.sh — builds 6 fuzz targets linking real signal/src/*.cc
  • 6 signal_*_fuzzer.cc — one per vulnerable kernel

Testing

All targets locally verified with silkeh/clang:latest Docker + ASan + libFuzzer. Crash reproducers are 4-6 bytes each.

@github-actions

Copy link
Copy Markdown

foodlook is integrating a new project:
- Main repo: https://github.com/tensorflow/tflite-micro
- Criticality score: 0.48710

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant