Division by zero in TensorFlow - CVE-2021-37653

 

Division by zero in TensorFlow - CVE-2021-37653

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


Vulnerability identifier: #VU129253
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-37653
CWE-ID: CWE-369
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 division by zero in tf.raw_ops.ResourceGather when processing crafted input with batch_dims set to 1. A local user can supply a crafted tensor to trigger a crash via a floating point exception to cause a denial of service.


Remediation

Install security update from vendor's website.

External links