PT-2021-23167 · Google · Tensorflow
Mihaimaruseac
·
Published
2021-11-05
·
Updated
2024-03-06
·
CVE-2021-41195
CVSS v4.0
6.8
Medium
| Vector | AV: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 implementation of
tf.math.segment * operations results in a CHECK-fail related abort (and denial of service) if a segment id in segment ids is large. This issue is similar to previously reported vulnerabilities in TensorFlow, where the implementation computes the output shape using AddDim. However, if the number of elements in the tensor overflows an int64 t value, AddDim results in a CHECK failure which provokes a std::abort. Instead, code should use AddDimWithStatus.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 large segment ids in
segment ids until a patch is available.Exploit
Fix
Integer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Tensorflow