ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| onnxonnx | — | Not listed |
| piponnx |
< 1.22.0→ 1.22.0 |
1.22.0 |
| PyPIonnx |
≥ 1.4.0, < 1.22.0→ 1.22.0 |
1.22.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-115921 onnx No fixed version in this record
- Ubuntu UBUNTU-CVE-2026-115921 onnx No fixed version in this record
Original description The description as published by the source.
Open Neural Network Exchange (ONNX) is an open standard for machine learning interoperability. From 1.4.0 until 1.22.0, ScanInferenceFunction, ScanInferenceFunction_opset8, and ScanInferenceFunction_opset9 do not safely validate the required num_scan_inputs attribute. A missing attribute is dereferenced as a null pointer, while a negative value is converted to size_t and can reach an exceptional oversized allocation path. An untrusted model can therefore terminate or disrupt shape inference, including a negative-value model that can pass onnx.checker.check_model(). This issue is fixed in version 1.22.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com