Heap-based buffer overflow in TensorFlow - CVE-2021-29540
Published: May 13, 2021 / Updated: May 4, 2026
TensorFlow
TensorFlow
Description
The vulnerability allows a remote attacker to cause a heap buffer overflow.
The vulnerability exists due to heap-based buffer overflow in Conv2DBackpropFilter when processing crafted filter_sizes input. A remote attacker can supply a specially crafted tensor configuration to cause a heap buffer overflow.
The issue occurs because the implementation computes the size of the filter tensor but does not validate that it matches the number of elements in filter_sizes.