CVE-2021-37640Divide By Zero in Tensorflow

CWE-369Divide By Zero5 documents4 sources
Severity
5.5MEDIUMNVD
EPSS
0.0%
top 90.69%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedAug 12
Latest updateAug 25

Description

TensorFlow is an end-to-end open source platform for machine learning. In affected versions the implementation of `tf.raw_ops.SparseReshape` can be made to trigger an integral division by 0 exception. The [implementation](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/reshape_util.cc#L176-L181) calls the reshaping functor whenever there is at least an index in the input but does not check that shape of the input or the target shape

CVSS vector

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

Affected Packages4 packages

NVDgoogle/tensorflow2.3.02.3.4+3
CVEListV5tensorflow/tensorflow< 2.5.1
PyPIintel/optimization_for_tensorflow2.4.02.4.3+4

Patches

🔴Vulnerability Details

3
GHSA
Integer division by 0 in sparse reshaping2021-08-25
OSV
Integer division by 0 in sparse reshaping2021-08-25
OSV
CVE-2021-37640: TensorFlow is an end-to-end open source platform for machine learning2021-08-12

📋Vendor Advisories

1
Debian
CVE-2021-37640: tensorflow - TensorFlow is an end-to-end open source platform for machine learning. In affect...2021