CVE-2022-41886: TensorFlow ImageProjectiveTransformV2 Overflow
Summary
CVE-2022-41886: Overflow in ImageProjectiveTransformV2 in Tensorflow. Affects tensorflow across 3 version ranges.
< 2.8.4
>= 2.9.0, < 2.9.3
>= 2.10.0, < 2.10.1
Fixed in 2.8.4, 2.9.3 or 2.10.1, depending on the release line you run. How to fix ↓
Also tracked for
- tensorflow-cpu · PyPI
- tensorflow · PyPI
- tensorflow-gpu · PyPI
- tensorflow · PyPI
The same CVE-2022-41886 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 domains for tasks such as image recognition, natural language processing, and recommendation systems. However, a vulnerability has been discovered in the tf.raw_ops.ImageProjectiveTransformV2 function, which can lead to an overflow when given a large output shape.
Vulnerability Detail
The vulnerability in TensorFlow's tf.raw_ops.ImageProjectiveTransformV2 arises when it is provided with a large output shape. This causes an overflow, potentially leading to unexpected behavior or crashes in applications utilizing this function. The issue has been identified and patched in the GitHub commit 8faa6ea692985dbe6ce10e1a3168e0bd60a723ba. The fix will be included in TensorFlow 2.11, and it will also be backported to TensorFlow 2.10.1, 2.9.3, and 2.8.4, as these versions are still within the supported range.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.8.42.8.4 -
>= 2.9.0, < 2.9.32.9.3 -
>= 2.10.0, < 2.10.12.10.1
Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →
Workaround
No specific workaround has been mentioned for this vulnerability. It is advised to apply the provided fix by updating to the patched versions of TensorFlow.
Conclusion
In conclusion, the TensorFlow ImageProjectiveTransformV2 vulnerability can lead to an overflow when provided with a large output shape. It is crucial to update TensorFlow to the patched versions or wait for the release of TensorFlow 2.11 to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
TensorFlow is an open source platform for machine learning, widely used for developing and deploying machine learning models.
The vulnerability in TensorFlow's tf.raw_ops.ImageProjectiveTransformV2 can lead to an overflow, potentially causing unexpected behavior or crashes in applications utilizing this function.
To fix the vulnerability, it is recommended to update TensorFlow to the patched versions: 2.10.1, 2.9.3, or 2.8.4, depending on the affected version.
No specific workaround has been mentioned for this vulnerability. It is advised to update to the patched versions of TensorFlow.
You can find more information about this vulnerability in the GitHub commit 8faa6ea692985dbe6ce10e1a3168e0bd60a723ba and the official TensorFlow documentation.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.