CVE-2021-29589Divide By Zero in Tensorflow

CWE-369Divide By Zero6 documents5 sources
Severity
7.8HIGHNVD
CNA2.5
EPSS
0.0%
top 95.91%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedMay 14
Latest updateMay 21

Description

TensorFlow is an end-to-end open source platform for machine learning. The reference implementation of the `GatherNd` TFLite operator is vulnerable to a division by zero error(https://github.com/tensorflow/tensorflow/blob/0d45ea1ca641b21b73bcf9c00e0179cda284e7e7/tensorflow/lite/kernels/internal/reference/reference_ops.h#L966). An attacker can craft a model such that `params` input would be an empty tensor. In turn, `params_shape.Dims(.)` would be zero, in at least one dimension. The fix will be

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability: 1.8 | Impact: 5.9

Affected Packages3 packages

NVDgoogle/tensorflow2.2.02.2.3+3
CVEListV5tensorflow/tensorflow< 2.1.4+3
PyPIintel/optimization_for_tensorflow2.2.02.3.0rc0+8

Patches

🔴Vulnerability Details

4
GHSA
Division by zero in TFLite's implementation of `GatherNd`2021-05-21
OSV
Division by zero in TFLite's implementation of `GatherNd`2021-05-21
OSV
CVE-2021-29589: TensorFlow is an end-to-end open source platform for machine learning2021-05-14
CVEList
Division by zero in TFLite's implementation of `GatherNd`2021-05-14

📋Vendor Advisories

1
Debian
CVE-2021-29589: tensorflow - TensorFlow is an end-to-end open source platform for machine learning. The refer...2021
CVE-2021-29589 — Divide By Zero in Tensorflow | cvebase