CVE-2022-23592: Out of bounds read in Tensorflow

Published Feb 4, 2022
·
Updated

Impact TensorFlow's type inference can cause a heap OOB read as the bounds checking is done in a DCHECK (which is a no-op during production):

cc if (nodet.typeid() != TFTUNSET) { int ix = inputidx[i]; DCHECK(ix < nodet.argssize()) << "input " << i << " should have an output " << ix << " but instead only has " << nodet.argssize() << " outputs: " << nodet.DebugString(); inputtypes.emplaceback(nodet.args(ix)); // ... } An attacker can control inputidx such that ix would be larger than the number of values in nodet.args. Patches We have patched the issue in GitHub commit c99d98cd189839dcf51aee94e7437b54b31f8abd. 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. TensorFlow's type inference can cause a heap out of bounds read as the bounds checking is done in a DCHECK (which is a no-op during production). An attacker can control the inputidx variable such that ix would be larger than the number of values in nodet.args. 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:31 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-23592?

CVE-2022-23592 has a moderate severity rating due to the potential for heap out of bounds reads.

2

How do I fix CVE-2022-23592?

To fix CVE-2022-23592, update TensorFlow to version 2.8.0 or later.

3

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

CVE-2022-23592 affects TensorFlow versions between 2.7.0 and 2.8.0.

4

Is CVE-2022-23592 specific to certain TensorFlow packages?

Yes, CVE-2022-23592 affects various TensorFlow packages including tensorflow, tensorflow-gpu, and tensorflow-cpu within the specified version range.

5

What is the main cause of CVE-2022-23592?

CVE-2022-23592 is caused by insufficient bounds checking during type inference in TensorFlow.

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