Heap-based buffer overflow in TensorFlow - CVE-2021-37651
Published: August 12, 2021 / Updated: May 4, 2026
TensorFlow
TensorFlow
Description
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to a heap-based buffer overflow in the FractionalAvgPoolGrad implementation when processing crafted input to tf.raw_ops.FractionalAvgPoolGrad. A remote attacker can supply a specially crafted input tensor shape and pooling sequences to cause a denial of service.
The issue is triggered because the implementation does not validate that the input tensor is non-empty before constructing and accessing an empty EigenDoubleMatrixMap.