CVE-2021-41211

HighCVSS 7.1/10Last modified Jun 17, 2026

Description

TensorFlow is an open source platform for machine learning. In affected versions 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`. In this case, we are accessing data before the start of a heap buffer. The code allows `axis` to be an optional argument (`s` would contain an `error::NOT_FOUND` error code). Otherwise, it assumes that `axis` is a valid index into the dimensions of the `input` tensor. If `axis` is less than `-1` then this results in a heap OOB read. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, as this version is the only one that is also affected.

Metrics

CVSS 3.1 7.1/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Weakness enumeration

Affected software

No affected versions have been published.

Timeline

Published
Nov 5, 2021
Last modified
Jun 17, 2026
NVD status
Modified

Related CVEs from 2021

CVE-2021-412127.1TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `tf.ragged.cross` can trigger CVE-2021-412135.5TensorFlow is an open source platform for machine learning. In affected versions the code behind `tf.function` API can be made to deadlock wCVE-2021-412147.8TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `tf.ragged.cross` has an undefCVE-2021-412155.5TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `DeserializeSparse` can triggeCVE-2021-412167.8TensorFlow is an open source platform for machine learning. In affected versions the shape inference function for `Transpose` is vulnerable CVE-2021-412175.5TensorFlow is an open source platform for machine learning. In affected versions the process of building the control flow graph for a TensorCVE-2021-412185.5TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for `AllToAll` can be made to execCVE-2021-412197.8TensorFlow is an open source platform for machine learning. In affected versions the code for sparse matrix multiplication is vulnerable to CVE-2021-41224.3It was found that a specially crafted LUKS header could trick cryptsetup into disabling encryption during the recovery of the device. An attCVE-2021-412207.8TensorFlow is an open source platform for machine learning. In affected versions the async implementation of `CollectiveReduceV2` suffers frCVE-2021-412217.8TensorFlow is an open source platform for machine learning. In affected versions the shape inference code for the `Cudnn*` operations in TenCVE-2021-412225.5TensorFlow is an open source platform for machine learning. In affected versions the implementation of `SplitV` can trigger a segfault is an