Skip to content
OpenAdvisories
Medium · 6.2 CVE-2026-115921 EUVD-2026-110046GHSA-m4pr-6v3c-6fgr

ONNX: Null Pointer Dereference in ScanInferenceFunction Due to Missing Required Attribute

Published Oct 26, 2026 · Updated Oct 31, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
onnx onnx >= 1.4.0, < 1.22.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 onnx No fix yet —
Debian 13 onnx No fix yet —
Debian 12 onnx No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 onnx No fix yet —
Ubuntu 26.04 LTS onnx No fix yet —
Ubuntu 22.04 LTS onnx No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS onnx No fix yet —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pytorch No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI onnx >= 1.4.0, < 1.22.0 1.22.0 GHSA-m4pr-6v3c-6fgr

References