CVE-2022-29210: Heap buffer overflow due to incorrect hash function in TensorFlow

Published May 20, 2022
·
Updated

TensorFlow is an open source platform for machine learning. In version 2.8.0, the TensorKey hash function used total estimated AllocatedBytes(), which (a) is an estimate per tensor, and (b) is a very poor hash function for constants (e.g. int32t). It also tried to access individual tensor bytes through tensor.data() of size AllocatedBytes(). This led to ASAN failures because the AllocatedBytes() is an estimate of total bytes allocated by a tensor, including any pointed-to constructs (e.g. strings), and does not refer to contiguous bytes in the .data() buffer. The discoverers could not use this byte vector anyway because types such as tstring include pointers, whereas they needed to hash the string values themselves. This issue is patched in Tensorflow versions 2.9.0 and 2.8.1.

Affected Software

1 affected component
Google TensorFlow=2.8.0

Event History

May 20, 2022
CVE Published
via MITRE·11:25 PM
Data Sourced
via MITRE·11:25 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2022-29210?

CVE-2022-29210 is categorized with a high severity due to its potential impact on machine learning applications using TensorFlow.

2

How do I fix CVE-2022-29210?

To address CVE-2022-29210, update TensorFlow to version 2.8.1 or later, where the vulnerability has been patched.

3

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

CVE-2022-29210 specifically affects TensorFlow version 2.8.0.

4

What are the implications of CVE-2022-29210 for machine learning developers?

The implications of CVE-2022-29210 include potential vulnerabilities in tensor management that could lead to inefficient performance or data integrity issues.

5

Is CVE-2022-29210 related to tensor handling in TensorFlow?

Yes, CVE-2022-29210 is directly related to the `TensorKey` hash function used in handling tensor objects 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