PT-2021-18302 · Google · Tensorflow

Yakun Zhang

+1

·

Published

2021-05-14

·

Updated

2024-03-06

·

CVE-2021-29551

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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 MatrixTriangularSolve fails to terminate kernel execution if one validation condition fails, allowing malicious attackers to trigger an out of bounds read. This issue arises because OP REQUIRES only sets the status to a non-OK value and calls return, but does not interrupt execution. As a result, the initialization of the bcast object is done with invalid data, resulting in a heap out of bounds read.
Recommendations For TensorFlow versions prior to 2.5.0, update to version 2.5.0 or later to resolve the issue. For TensorFlow versions 2.4.2 and earlier, update to version 2.4.2 or later to resolve the issue. For TensorFlow versions 2.3.3 and earlier, update to version 2.3.3 or later to resolve the issue. For TensorFlow versions 2.2.3 and earlier, update to version 2.2.3 or later to resolve the issue. For TensorFlow versions 2.1.4 and earlier, update to version 2.1.4 or later to resolve the issue. As a temporary workaround, consider disabling the MatrixTriangularSolve function until a patch is available.

Exploit

Fix

Out of bounds Read

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2021-29551
CVE-2021-29551
GHSA-VQW6-72R7-FGW7
PYSEC-2021-188
PYSEC-2021-479
PYSEC-2021-677

Affected Products

Tensorflow