PT-2022-15067 · Google · Tensorflow

Yu Tian

·

Published

2022-02-03

·

Updated

2024-03-06

·

CVE-2022-21728

CVSS v3.1

8.1

High

VectorAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.8.0 TensorFlow versions 2.7.1 and earlier TensorFlow versions 2.6.3 and earlier TensorFlow versions 2.5.3 and earlier
Description The implementation of shape inference for ReverseSequence does not fully validate the value of batch dim and can result in a heap OOB read. There is a check to make sure the value of batch dim does not go over the rank of the input, but there is no check for negative values. Negative dimensions are allowed in some cases to mimic Python's negative indexing, however if the value is too negative then the implementation of Dim would access elements before the start of an array.
Recommendations For versions prior to 2.8.0, update to TensorFlow 2.8.0 or later. For versions 2.7.1 and earlier, update to TensorFlow 2.7.1 or later. For versions 2.6.3 and earlier, update to TensorFlow 2.6.3 or later. For versions 2.5.3 and earlier, update to TensorFlow 2.5.3 or later. As a temporary workaround, consider restricting the use of the ReverseSequence function with negative batch dim values until a patch is available.

Exploit

Fix

Out of bounds Read

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2022-21728
CVE-2022-21728
GHSA-6GMV-PJP9-P8W8
OPENSUSE-SU-2024:12116-1
PYSEC-2022-107
PYSEC-2022-52

Affected Products

Tensorflow