Division by zero in TensorFlow - CVE-2021-41218

 

Division by zero in TensorFlow - CVE-2021-41218

Published: November 5, 2021 / Updated: May 3, 2026


Vulnerability identifier: #VU129189
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-41218
CWE-ID: CWE-369
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 division by zero in the tf.raw_ops.AllToAll shape inference code when processing a crafted split_count argument. A remote attacker can supply input with split_count set to 0 to cause a denial of service.


How to mitigate CVE-2021-41218

Install security update from vendor's website.

Sources