CVE-2022-21737: Assertion failure based denial of service in Tensorflow
Impact The implementation of Bincount operations allows malicious users to cause denial of service by passing in arguments which would trigger a CHECK-fail:
python import tensorflow as tf
tf.rawops.DenseBincount( input=[[0], [1], [2]], size=[1], weights=[3,2,1], binaryoutput=False)
There are several conditions that the input arguments must satisfy. Some are not caught during shape inference and others are not caught during kernel implementation. This results in CHECK failures later when the output tensors get allocated.
Patches We have patched the issue in GitHub commit 7019ce4f68925fd01cdafde26f8d8c938f47e6f9.
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 Faysal Hossain Shezan from University of Virginia.
Other sources
Tensorflow is an Open Source Machine Learning Framework. The implementation of Bincount operations allows malicious users to cause denial of service by passing in arguments which would trigger a CHECK-fail. There are several conditions that the input arguments must satisfy. Some are not caught during shape inference and others are not caught during kernel implementation. This results in CHECK failures later when the output tensors get allocated. 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-21737?
CVE-2022-21737 has been classified with a severity level that indicates it can lead to denial of service attacks.
How do I fix CVE-2022-21737?
To mitigate CVE-2022-21737, update TensorFlow to version 2.7.1 or later.
Which versions of TensorFlow are affected by CVE-2022-21737?
CVE-2022-21737 affects TensorFlow versions up to 2.7.0, including 2.5.2 and 2.6.0 through 2.6.2.
Can CVE-2022-21737 cause system crashes?
Yes, exploiting CVE-2022-21737 can result in denial of service, potentially leading to application crashes.
Is TensorFlow GPU or CPU also affected by CVE-2022-21737?
Both TensorFlow GPU and CPU installations are affected by CVE-2022-21737.