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

 

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

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


Vulnerability identifier: #VU129280
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-29612
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: TensorFlow
Affected software:
TensorFlow

Detailed vulnerability description

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to a heap-based buffer overflow in the Eigen implementation of tf.raw_ops.BandedTriangularSolve when processing empty input tensors. A remote attacker can supply crafted tensor inputs to cause a denial of service.

The issue is triggered because input validation does not ensure that the tensors are non-empty, and execution continues even after validation sets a non-OK status.


How to mitigate CVE-2021-29612

Install security update from vendor's website.

Sources