PT-2021-23184 · Google · Tensorflow

Published

2021-11-05

·

Updated

2024-03-06

·

CVE-2021-41211

CVSS v3.1

7.1

High

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions TensorFlow versions 2.6.1 through 2.6.1 TensorFlow versions prior to 2.7.0
Description The shape inference code for QuantizeV2 can trigger a read outside of bounds of heap allocated array. This occurs whenever axis is a negative value less than -1, resulting in accessing data before the start of a heap buffer. The code allows axis to be an optional argument, and if axis is less than -1, this results in a heap OOB read.
Recommendations For TensorFlow version 2.6.1, update to a newer version that includes the fix, such as TensorFlow 2.7.0. For TensorFlow versions prior to 2.7.0, update to TensorFlow 2.7.0 to resolve the issue. As a temporary workaround, consider restricting the use of the QuantizeV2 function with negative axis values 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-41211
CVE-2021-41211
GHSA-CVGX-3V3Q-M36C
OPENSUSE-SU-2024:12116-1
PYSEC-2021-403
PYSEC-2021-620
PYSEC-2021-818

Affected Products

Tensorflow