Heap-based buffer overflow in TensorFlow - CVE-2021-29535

 

Heap-based buffer overflow in TensorFlow - CVE-2021-29535

Published: May 13, 2021 / Updated: May 4, 2026


Vulnerability identifier: #VU129357
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-29535
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
TensorFlow
Software vendor:
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 QuantizedMul when processing invalid quantization threshold tensors. A remote attacker can pass empty threshold tensors to trigger the overflow and cause a denial of service.

The issue occurs if any of the min_x, max_x, min_y, or max_y input tensors is empty instead of a valid scalar.


Remediation

Install security update from vendor's website.

External links