PT-2021-21795

CVE-2021-37677

·

Published

2021-08-12

·

Updated

2024-03-06

Description by

CVSS 4.0
6.8
Medium
MetricsAV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.6.0 TensorFlow versions 2.5.1 and earlier TensorFlow versions 2.4.3 and earlier TensorFlow versions 2.3.4 and earlier
Description The shape inference code for tf.raw ops.Dequantize has a vulnerability that could trigger a denial of service via a segfault if an attacker provides invalid arguments. The shape inference implementation uses axis to select between two different values for minmax rank which is then used to retrieve tensor dimensions. However, the code assumes that axis can be either -1 or a value greater than -1, with no validation for other values.
Recommendations For versions prior to 2.6.0, update to TensorFlow 2.6.0 or later. For versions 2.5.1 and earlier, update to TensorFlow 2.5.1 or later. For versions 2.4.3 and earlier, update to TensorFlow 2.4.3 or later. For versions 2.3.4 and earlier, update to TensorFlow 2.3.4 or later. As a temporary workaround, consider validating the axis value before passing it to tf.raw ops.Dequantize to prevent the denial of service via a segfault.
Exploitability
Fix
Impacts
Researchers
Vendors
Affected products
Related identifiers
GHSA-QFPC-5PJR-MH26
BIT-TENSORFLOW-2021-37677
OPENSUSE-SU-2022:10014-1
OPENSUSE-SU-2024:12116-1
PYSEC-2021-299
PYSEC-2021-590
PYSEC-2021-788
Found an issue in the description? Have something to add? Feel free to write us 👾