PT-2021-18325 · Google · Tensorflow
Yakun Zhang
+1
·
Published
2021-05-14
·
Updated
2024-03-06
·
CVE-2021-29574
CVSS v3.1
7.8
High
| Vector | AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
TensorFlow versions prior to 2.5.0
TensorFlow versions 2.4.2 and earlier
TensorFlow versions 2.3.3 and earlier
TensorFlow versions 2.2.3 and earlier
TensorFlow versions 2.1.4 and earlier
Description
The implementation of
tf.raw ops.MaxPool3DGradGrad exhibits undefined behavior by dereferencing null pointers backing attacker-supplied empty tensors. The implementation fails to validate that the 3 tensor inputs are not empty. If any of them is empty, then accessing the elements in the tensor results in dereferencing a null pointer.Recommendations
For versions prior to 2.5.0, update to TensorFlow 2.5.0 or later.
For versions 2.4.2 and earlier, update to TensorFlow 2.4.2 or later.
For versions 2.3.3 and earlier, update to TensorFlow 2.3.3 or later.
For versions 2.2.3 and earlier, update to TensorFlow 2.2.3 or later.
For versions 2.1.4 and earlier, update to TensorFlow 2.1.4 or later.
As a temporary workaround, consider validating the input tensors to ensure they are not empty before calling
tf.raw ops.MaxPool3DGradGrad.Exploit
Fix
NULL Pointer Dereference
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Tensorflow