Input validation error in TensorFlow - CVE-2021-29521
Published: May 13, 2021 / Updated: May 4, 2026
TensorFlow
TensorFlow
Description
The vulnerability allows a local user to cause a denial of service.
The vulnerability exists due to improper input validation in tf.raw_ops.SparseCountSparseOutput when processing a crafted dense_shape argument. A local user can supply a dense_shape tensor with negative values to cause a denial of service.
The issue is triggered because the implementation assumes the first element of dense_shape is positive and uses it to initialize a std::vector-backed data structure.