PT-2021-23174 · Google · Tensorflow

Mihaimaruseac

·

Published

2021-11-05

·

Updated

2024-03-06

·

CVE-2021-41202

CVSS v4.0

6.8

Medium

VectorAV: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.7.0 TensorFlow versions 2.6.1 and earlier TensorFlow versions 2.5.2 and earlier TensorFlow versions 2.4.4 and earlier
Description The issue arises from a conditional statement within the tf.range kernel, where both branches of the condition are cast to double due to C++ implicit conversion rules, resulting in truncation before assignment and leading to overflows. This can cause crashes when the start or end point of tf.range are too large. The estimated number of potentially affected devices worldwide is not available.
Recommendations For versions prior to 2.7.0, update to TensorFlow 2.7.0 or later. For versions 2.6.1 and earlier, update to TensorFlow 2.6.1 or later. For versions 2.5.2 and earlier, update to TensorFlow 2.5.2 or later. For versions 2.4.4 and earlier, update to TensorFlow 2.4.4 or later. As a temporary workaround, consider avoiding the use of tf.range with large start or end points until a patch is available. Restrict access to the tf.range kernel to minimize the risk of exploitation.

Fix

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2021-41202
CVE-2021-41202
GHSA-XRQM-FPGR-6HHX
OPENSUSE-SU-2024:12116-1
PYSEC-2021-395
PYSEC-2021-612
PYSEC-2021-810

Affected Products

Tensorflow