CVE-2022-29210: TensorFlow - Poor Hash Function and ASAN Failures

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2022-29210: Heap buffer overflow due to incorrect hash function in TensorFlow. Affects tensorflow versions >= 2.8.0, < 2.8.1. Fixed in 2.8.1. How to fix ↓

Also tracked for

The same CVE-2022-29210 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

TensorFlow is an open source platform for machine learning. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and deploying machine learning models. TensorFlow is widely used in various industries and research fields due to its flexibility, scalability, and extensive community support. However, in version 2.8.0, a vulnerability was discovered that could lead to ASAN failures and impact the integrity of the machine learning process.

Vulnerability Detail

The vulnerability in TensorFlow version 2.8.0 is related to the TensorKey hash function. This function used the total estimated AllocatedBytes() as a hash value, which is an estimate per tensor and a poor hash function for constants like int32_t. Additionally, it attempted to access individual tensor bytes through tensor.data() of size AllocatedBytes(). This approach caused ASAN failures because AllocatedBytes() includes any pointed-to constructs, such as strings, and does not refer to contiguous bytes in the .data() buffer. The discoverers of the vulnerability needed to hash the string values themselves, but the byte vector provided by tensor.data() was not suitable. This vulnerability has been patched in TensorFlow versions 2.9.0 and 2.8.1.

How To Fix

Minimum fixed version

2.8.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability.

Conclusion

The vulnerability in TensorFlow version 2.8.0 related to the TensorKey hash function has been addressed in versions 2.9.0 and 2.8.1. It is crucial to update TensorFlow to these patched versions to ensure the integrity and security of machine learning processes. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open source platform for machine learning that provides tools and resources for developing and deploying machine learning models.

The vulnerability could lead to ASAN failures and impact the integrity of the machine learning process.

The vulnerability affects TensorFlow version 2.8.0.

To fix this vulnerability, it is recommended to upgrade TensorFlow to version 2.9.0 or 2.8.1.

No specific workarounds have been mentioned for this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.8.1

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback