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.

heap-use-after-free in onnx-ort-format (id:000022,sig:06,src:000011,time:17072887,execs:109692914,op:havoc,rep:1)

Severity: critical CWE: CWE-416 Target: onnx-ort-format Generated: 2026-03-01

Summary

heap-use-after-free in onnx-ort-format (id:000022,sig:06,src:000011,time:17072887,execs:109692914,op:havoc,rep:1). See ASAN output below for details.

Reproduction

chmod +x reproduce.sh
./reproduce.sh

Or manually:

# Build target with ASAN
# Run: <target> poc.ort

PoC File

  • poc.ort (143 bytes)

ASAN Output

Testing: /home/rammdaeus/huntr/fuzz-output/onnx-ort-format/main/crashes/id:000022,sig:06,src:000011,time:17072887,execs:109692914,op:havoc,rep:1 (143 bytes)
=================================================================
==3240149==ERROR: AddressSanitizer: heap-use-after-free on address 0x6f49ee244c38 at pc 0x72c9f3d435b4 bp 0x7ffd3f0ddf10 sp 0x7ffd3f0ddf00
READ of size 16 at 0x6f49ee244c38 thread T0
    #0 0x72c9f3d435b3 in _mm_loadu_ps(float const*) /usr/lib/gcc/x86_64-linux-gnu/15/include/xmmintrin.h:982
    #1 0x72c9f3d435b3 in MlasLoadFloat32x4(float const*) /home/rammdaeus/gor/hunting/targets/onnxruntime/onnxruntime/core/mlas/lib/mlasi.h:2104
    #2 0x72c9f3d435b3 in void MlasSgemmTransposePackBNx4<8u>(float*, float const*, unsigned long) /home/rammdaeus/gor/hunting/targets/onnxruntime/onnxruntime/core/mlas/lib/sgemm.cpp:395
    #3 0x72c9f3d3ec81 in MlasSgemmTransposePackB(float*, float const*, unsigned long, unsigned long, unsigned long) (/home/rammdaeus/huntr/libs/onnx/libonnxruntime.so.1+0x3d3ec81) (BuildId: 06133089d904988c5bacaadc701d1137241257f4)
    #4 0x72c9f3d40f05 in MlasSgemmOperation(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, unsigned long, unsigned long, unsigned long, float, float const*, unsigned long, float const*, unsigned long, float, float*, unsigned long) (/home/rammdaeus/huntr/libs/onnx/libonnxruntime.so.1+0x3d40f05) (BuildId: 06133089d904988c5bacaadc701d1137241257f4)
    #5 0x72c9f3d426a6 in MlasSgemmThreaded(long, long, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, unsigned long, unsigned long, unsigned long, MLAS_SGEMM_DATA_PARAMS const*, long) (/home/rammdaeus/huntr/libs/onnx/libonnxruntime.so.1+0x3d426a6) (BuildId: 06133089d904988c5bacaadc701d1137241257f4)
    #6 0x72c9f3d42928 in MlasGemmBatch(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, unsigned long, unsigned long, unsigned long, MLAS_SGEMM_DATA_PARAMS const*, unsigned long, onnxruntime::concurrency::ThreadPool*)::{lambda(long)#1}::operator()(long) const (/home/rammdaeus/huntr/libs/onnx/libonnxruntime.so.1+0x3d42928) (BuildId: 06133089d904988c5bacaadc701d1137241257f4)
    #7 0x72c9f3d449fa in __invoke_impl<void, MlasGemmBatch(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, size_t, size_t, size_t, const MLAS_SGEMM_DATA_PARAMS*, size_t, MLAS_THREADPOOL*)::<lambda(ptrdiff_t)>&, long int> /usr/include/c++/15/bits/invoke.h:63
    #8 0x72c9f3d44872 in __invoke_r<void, MlasGemmBatch(CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, size_t, size_t, size_t, const MLAS_SGEMM_DATA_PARAMS*, size_t, MLAS_THREADPOOL*)::<lambda(ptrdiff_t)>&, long int> /usr/include/c++/15/bits/invoke.h:113
    #9 0x72c9f3d445b4 in _M_invoke /usr/include/c++/15/bits/std_function.h:292
    #10 0x72c9f1421fcf in std::function<void (long)>::operator()(long) const /usr/include/c++/15/bits/std_function.h:593
    #11 0x72c9f4203116 in MlasTrySimpleParallel(onnxruntime::concurrency::ThreadPool*, long, std::function<void (long)> const&) /home/rammdaeus/gor/hunting/targets/onnxruntime/onnxruntime/core/mlas/lib/threading.cpp:71
    #12 0x72c9f3d42ead in MlasGemmBa

Impact

Memory corruption vulnerability reachable by processing a malformed onnx-ort-format 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