Skip to content
OpenAdvisories
Medium · 5.9 CVE-2022-23593 BIT-tensorflow-2022-23593EUVD-2022-0286GHSA-gwcx-jrx4-92w2PYSEC-2022-102PYSEC-2022-157PYSEC-2026-3193

Segfault in `simplifyBroadcast` in Tensorflow

Published Feb 4, 2022 · Updated Apr 22, 2025 · Assigned by GitHub_M

Description

Tensorflow is an Open Source Machine Learning Framework. The `simplifyBroadcast` function in the MLIR-TFRT infrastructure in TensorFlow is vulnerable to a segfault (hence, denial of service), if called with scalar shapes. If all shapes are scalar, then `maxRank` is 0, so we build an empty `SmallVector`. The fix will be included in TensorFlow 2.8.0. This is the only affected version.

Affected products

VendorProductAffectedFixed
tensorflow tensorflow >= 2.7.0, < 2.8.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI tensorflow >= 2.8.0-rc0, < 2.8.0 2.8.0 GHSA-gwcx-jrx4-92w2
PyPI tensorflow-cpu >= 2.8.0-rc0, < 2.8.0 2.8.0 GHSA-gwcx-jrx4-92w2
PyPI tensorflow-cpu >= 2.7.0, < 2.8.0 2.8.0 PYSEC-2022-102
PyPI tensorflow-gpu >= 2.8.0-rc0, < 2.8.0 2.8.0 GHSA-gwcx-jrx4-92w2
PyPI tensorflow-gpu >= 2.7.0, < 2.8.0 2.8.0 PYSEC-2022-157

References