CVE-2022-36015: TensorFlow RangeSize Integer Overflow Vulnerability
Summary
CVE-2022-36015: Integer overflow in math ops in TensorFlow. Affects tensorflow across 3 version ranges.
< 2.7.2
>= 2.8.0, < 2.8.1
>= 2.9.0, < 2.9.1
Fixed in 2.7.2, 2.8.1 or 2.9.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow · PyPI
- tensorflow-cpu · PyPI
- tensorflow-gpu · PyPI
- tensorflow · PyPI
The same CVE-2022-36015 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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.
No signup required · Results in about 60 seconds
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 for tasks such as image recognition, natural language processing, and recommendation systems. However, a vulnerability has been discovered in TensorFlow that could potentially lead to a crash when certain values are passed to the RangeSize function.
Vulnerability Detail
The vulnerability in TensorFlow arises when the RangeSize function receives values that cannot be accommodated within an int64_t data type. This integer overflow can result in a crash of the application. An attacker could potentially exploit this vulnerability to cause a denial of service (DoS) condition or disrupt the functioning of a TensorFlow-based machine learning system. The issue has been addressed in the GitHub commit 37e64539cd29fcfb814c4451152a60f5d107b0f0 and will be included in TensorFlow 2.10.0. The fix has also been backported to TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.7.22.7.2 -
>= 2.8.0, < 2.8.12.8.1 -
>= 2.9.0, < 2.9.12.9.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Conclusion
The TensorFlow RangeSize Integer Overflow vulnerability can lead to application crashes and potential denial of service (DoS) attacks. It is crucial to update TensorFlow to the fixed versions or apply the provided patches to ensure the security and stability of machine learning systems. For further support and assistance in vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
TensorFlow is an open source platform for machine learning that provides tools and resources for developing and deploying machine learning models.
The vulnerability can lead to a crash of the application and potentially be exploited by an attacker to cause a denial of service (DoS) condition.
To fix this vulnerability, update TensorFlow to version 2.10.0 or apply the respective patches for earlier versions.
There are no known workarounds for this vulnerability. It is recommended to update to the fixed versions of TensorFlow.
More information about this vulnerability can be found in the GitHub commit 37e64539cd29fcfb814c4451152a60f5d107b0f0 and the official TensorFlow documentation.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.