CVE-2021-41224: `SparseFillEmptyRows` heap OOB read
Impact The implementation of SparseFillEmptyRows can be made to trigger a heap OOB access:
python import tensorflow as tf data=tf.rawops.SparseFillEmptyRows( indices=[[0,0],[0,0],[0,0]], values=['sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss'], denseshape=[5,3], defaultvalue='o') This occurs whenever the size of indices does not match the size of values.
Patches We have patched the issue in GitHub commit 67bfd9feeecfb3c61d80f0e46d89c170fbee682b.
The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, 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 members of the Aivul Team from Qihoo 360.
Other sources
TensorFlow is an open source platform for machine learning. In affected versions the implementation of SparseFillEmptyRows can be made to trigger a heap OOB access. This occurs whenever the size of indices does not match the size of values. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is TensorFlow?
TensorFlow is an open source platform for machine learning.
What is the vulnerability ID?
The vulnerability ID is CVE-2021-41224.
What is the severity of CVE-2021-41224?
The severity of CVE-2021-41224 is high with a CVSS score of 7.1.
Which versions of TensorFlow are affected by CVE-2021-41224?
TensorFlow versions up to 2.4.4, 2.5.0 to 2.5.2, and 2.6.0 to 2.6.1 are affected by CVE-2021-41224.
How can I fix CVE-2021-41224?
The fix for CVE-2021-41224 will be included in TensorFlow 2.7.0.