Input validation error in TensorFlow - CVE-2021-29541
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.StringNGrams when processing a crafted data_splits argument. A remote attacker can supply a specially crafted data_splits input to cause a denial of service.
The issue occurs when the output is computed to have zero or negative size, causing later writes to dereference a null pointer.