PT-2021-21763 · Google · Tensorflow

Published

2021-08-12

·

Updated

2024-03-06

·

CVE-2021-37648

CVSS v4.0

8.5

High

VectorAV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions TensorFlow versions prior to 2.6.0 TensorFlow versions 2.5.1 and earlier TensorFlow versions 2.4.3 and earlier TensorFlow versions 2.3.4 and earlier
Description The code for tf.raw ops.SaveV2 does not properly validate the inputs, allowing an attacker to trigger a null pointer dereference. The implementation uses ValidateInputs to check that the input arguments are valid, but the validation uses OP REQUIRES which does not finalize the kernel execution, making it equivalent to lacking the validation.
Recommendations For versions prior to 2.6.0, update to TensorFlow 2.6.0 or later. For versions 2.5.1 and earlier, update to TensorFlow 2.5.1 or later, or apply the patch from GitHub commit 9728c60e136912a12d99ca56e106b7cce7af5986. For versions 2.4.3 and earlier, update to TensorFlow 2.4.3 or later, or apply the patch from GitHub commit 9728c60e136912a12d99ca56e106b7cce7af5986. For versions 2.3.4 and earlier, update to TensorFlow 2.3.4 or later, or apply the patch from GitHub commit 9728c60e136912a12d99ca56e106b7cce7af5986. As a temporary workaround, consider disabling the tf.raw ops.SaveV2 function until a patch is available.

Fix

NULL Pointer Dereference

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

Weakness Enumeration

Related Identifiers

BIT-TENSORFLOW-2021-37648
CVE-2021-37648
GHSA-WP77-4GMM-7CQ8
OPENSUSE-SU-2022:10014-1
OPENSUSE-SU-2024:12116-1
PYSEC-2021-270
PYSEC-2021-561
PYSEC-2021-759

Affected Products

Tensorflow