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

 

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

Published: August 12, 2021 / Updated: May 4, 2026


Vulnerability identifier: #VU129256
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-37650
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 or execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in tf.raw_ops.ExperimentalDatasetToTFRecord and tf.raw_ops.DatasetToTFRecord when processing a dataset containing non-string records. A local user can supply a specially crafted dataset with numeric types to cause a denial of service or execute arbitrary code.


Remediation

Install security update from vendor's website.

External links