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

 

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

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


Vulnerability identifier: #VU129334
CSH Severity: Medium
CVSS v4.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-29558
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 tf.raw_ops.SparseSplit when processing user-supplied sparse tensor input. A remote attacker can supply crafted indices and split parameters to cause a denial of service.

The issue is triggered because an array element is accessed using a user-controlled offset, resulting in heap memory being overwritten.


How to mitigate CVE-2021-29558

Install security update from vendor's website.

Sources