Division by zero in TensorFlow - CVE-2021-29550
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 division by zero in tf.raw_ops.FractionalAvgPool when processing user-supplied input shapes and pooling ratios. A remote attacker can supply crafted value and pooling_ratio arguments to cause a denial of service.
The issue occurs because a computed output size can become 0 in released builds, leading to a crash in a later modulo operation.