CVE-2022-21729: Overflow and uncaught divide by zero in Tensorflow
Impact The implementation of UnravelIndex is vulnerable to a division by zero caused by an integer overflow bug:
python import tensorflow as tf
tf.rawops.UnravelIndex(indices=-0x100000,dims=[0x100000,0x100000])
Patches We have patched the issue in GitHub commit 58b34c6c8250983948b5a781b426f6aa01fd47af. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range. For more information Please consult our security guide for more information regarding the security model and how to contact us with issues and questions. Attribution This vulnerability has been reported by Yu Tian of Qihoo 360 AIVul Team.
Other sources
Tensorflow is an Open Source Machine Learning Framework. The implementation of UnravelIndex is vulnerable to a division by zero caused by an integer overflow bug. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2022-21729?
CVE-2022-21729 has a high severity due to the risk of integer overflow leading to a division by zero.
How do I fix CVE-2022-21729?
To mitigate CVE-2022-21729, update TensorFlow to version 2.5.3, 2.6.3, or 2.7.1.
Which versions of TensorFlow are affected by CVE-2022-21729?
CVE-2022-21729 affects TensorFlow versions 2.5.2 and earlier, as well as versions 2.6.0 to 2.6.2, and exactly 2.7.0.
What functionality is affected by CVE-2022-21729?
CVE-2022-21729 affects the functionality of the UnravelIndex operation in TensorFlow.
Is a workaround available for CVE-2022-21729?
There is no official workaround for CVE-2022-21729; the recommended solution is to upgrade to a fixed version.