Skip to content
OpenAdvisories
Medium · 5.5 CVE-2022-29201 BIT-tensorflow-2022-29201EUVD-2022-4806GHSA-pqhm-4wvf-2jg8PYSEC-2026-1026PYSEC-2026-3224PYSEC-2026-3358

Missing validation in `QuantizedConv2D` results in undefined behavior in TensorFlow

Published May 20, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of `tf.raw_ops.QuantizedConv2D` does not fully validate the input arguments. In this case, references get bound to `nullptr` for each argument that is empty. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow < 2.6.4, >= 2.7.0rc0, < 2.7.2, >= 2.8.0rc0, < 2.8.1, >= 2.9.0rc0, < 2.9.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow < 2.6.4 2.6.4 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow >= 2.7.0, < 2.7.2 2.7.2 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow >= 2.8.0, < 2.8.1 2.8.1 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-3224
PyPI tensorflow-cpu < 2.6.4 2.6.4 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow-cpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow-cpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow-cpu < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-3358
PyPI tensorflow-gpu < 2.6.4 2.6.4 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow-gpu >= 2.7.0, < 2.7.2 2.7.2 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow-gpu >= 2.8.0, < 2.8.1 2.8.1 GHSA-pqhm-4wvf-2jg8
PyPI tensorflow-gpu < 2.6.4 · >= 2.7.0, < 2.7.2 · >= 2.8.0, < 2.8.1 2.6.4, 2.7.2, 2.8.1 PYSEC-2026-1026

References