Division by 0 in `SparseMatMul`
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a denial of service via a FPE runtime error in `tf.raw_ops.SparseMatMul`. The division by 0 occurs deep in Eigen code because the `b` tensor is empty. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, TensorFlow 2.3.3, TensorFlow 2.2.3 and TensorFlow 2.1.4, as these are also affected and still in supported range.
From the CVE record · GitHub_M
TensorFlow’s `tf.raw_ops.SparseMatMul` can trigger a floating-point runtime error when its `b` tensor is empty. An attacker can cause a denial of service under that condition. The input does not specify whether network access, authentication, or user interaction is required.
Engineers running PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu versions below 2.1.4, 2.2.0–before 2.2.3, 2.3.0–before 2.3.3, or 2.4.0–before 2.4.2 should check their installations.