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

 

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

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


Vulnerability identifier: #VU129371
CSH Severity: Low
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2021-29520
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
TensorFlow
Software vendor:
TensorFlow

Description

The vulnerability allows a local user to cause a denial of service.

The vulnerability exists due to a heap-based buffer overflow in Conv3DBackpropInputV2 and Conv3DBackpropFilterV2 when processing crafted tensor arguments. A local user can supply mismatched input, filter_sizes, or out_backprop tensor shapes to cause a denial of service.

The issue occurs because the implementation accesses these tensors in parallel while assuming they have the same shape.


Remediation

Install security update from vendor's website.

External links