Input validation error in TensorFlow - CVE-2021-29531
Published: May 13, 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 improper input validation in tf.raw_ops.EncodePng when encoding an empty input tensor as pixel data. A remote attacker can provide an empty input tensor to trigger process abort and cause a denial of service.
The issue is triggered because an empty tensor results in a null image buffer that reaches a CHECK_NOTNULL assertion in png::WriteImageToBuffer.