PT-2020-16394 · Google · Tensorflow

Mihaimaruseac

·

Published

2020-12-10

·

Updated

2024-03-06

·

CVE-2020-26271

CVSS v4.0

4.8

Medium

VectorAV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 1.15.5 TensorFlow versions prior to 2.0.4 TensorFlow versions prior to 2.1.3 TensorFlow versions prior to 2.2.2 TensorFlow versions prior to 2.3.2 TensorFlow versions prior to 2.4.0
Description In affected versions of TensorFlow, under certain cases, loading a saved model can result in accessing uninitialized memory while building the computation graph. The MakeEdge function creates an edge between one output tensor of the src node (given by output index) and the input slot of the dst node (given by input index). This is only possible if the types of the tensors on both sides coincide, so the function begins by obtaining the corresponding DataType values and comparing these for equality. However, there is no check that the indices point to inside of the arrays they index into. Thus, this can result in accessing data out of bounds of the corresponding heap allocated arrays. In most scenarios, this can manifest as uninitialized data access, but if the index points far away from the boundaries of the arrays this can be used to leak addresses from the library.
Recommendations For versions prior to 1.15.5, update to version 1.15.5 or later. For versions prior to 2.0.4, update to version 2.0.4 or later. For versions prior to 2.1.3, update to version 2.1.3 or later. For versions prior to 2.2.2, update to version 2.2.2 or later. For versions prior to 2.3.2, update to version 2.3.2 or later. For versions prior to 2.4.0, update to version 2.4.0 or later.

Exploit

Fix

Out of bounds Read

Use of Uninitialized Resource

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2020-26271
CVE-2020-26271
GHSA-Q263-FVXM-M5MW
OPENSUSE-SU-2022:10014-1
PYSEC-2020-257
PYSEC-2020-302
PYSEC-2020-337

Affected Products

Tensorflow