Heap-based buffer overflow in TensorFlow - CVE-2021-29536
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 a heap-based buffer overflow in QuantizedReshape when processing invalid quantization threshold tensors. A remote attacker can pass empty input_min or input_max tensors to cause a denial of service.
The issue occurs because the implementation assumes the threshold arguments are valid scalars and accesses element 0 even when the tensors are empty.