CVE-2022-23593: Segfault in `simplifyBroadcast` in Tensorflow

Published Feb 4, 2022
·
Updated

Impact The simplifyBroadcast function in the MLIR-TFRT infrastructure in TensorFlow is vulnerable to a segfault (hence, denial of service), if called with scalar shapes.

cc sizet maxRank = 0; for (auto shape : llvm::enumerate(shapes)) { auto foundshape = analysis.dimensionsForShapeTensor(shape.value()); if (!foundshape) return {}; shapesfound.pushback(foundshape); maxRank = std::max(maxRank, foundshape->size()); }

SmallVector<const ShapeComponentAnalysis::SymbolicDimension> joineddimensions(maxRank);

If all shapes are scalar, then maxRank is 0, so we build an empty SmallVector.

Patches We have patched the issue in GitHub commit 35f0fabb4c178253a964d7aabdbb15c6a398b69a.

The fix will be included in TensorFlow 2.8.0. This is the only affected version.

For more information Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.

Other sources

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 Software

4 affected componentsFixes available
pip/tensorflow-gpu=2.8.0-rc0
2.8.0
pip/tensorflow-cpu=2.8.0-rc0
2.8.0
pip/tensorflow=2.8.0-rc0
2.8.0
Google TensorFlow>=2.7.0<2.8.0

Event History

Feb 4, 2022
CVE Published
via MITRE·10:32 PM
Data Sourced
via MITRE·10:32 PM
DescriptionSeverityWeakness
Feb 9, 2022
Advisory Published
via GitHub·11:32 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-23593?

CVE-2022-23593 has a moderate severity level due to potential data leakage or incorrect processing.

2

How do I fix CVE-2022-23593?

To fix CVE-2022-23593, upgrade to TensorFlow version 2.8.0 or higher.

3

What versions of TensorFlow are affected by CVE-2022-23593?

CVE-2022-23593 affects TensorFlow versions between 2.7.0 and 2.8.0, inclusive.

4

Is CVE-2022-23593 specific to TensorFlow GPU or CPU?

CVE-2022-23593 impacts both TensorFlow CPU and GPU packages.

5

What kind of vulnerability is CVE-2022-23593?

CVE-2022-23593 is a technical vulnerability associated with the simplifyBroadcast function in the MLIR-TFRT infrastructure.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203