Missing validation results in undefined behavior in `SparseTensorDenseAdd` in TensorFlow
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
≥ 2.7.0 · < 2.7.2≥ 2.8.0 · < 2.8.1
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the implementation of `tf.raw_ops.SparseTensorDenseAdd` does not fully validate the input arguments. In this case, a reference gets bound to a `nullptr` during kernel execution. This is undefined behavior. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.
From the CVE record · GitHub_M
TensorFlow’s tf.raw_ops.SparseTensorDenseAdd does not fully validate its inputs, allowing a null reference during kernel execution. An attacker who can supply inputs to this operation could trigger undefined behavior. The input does not specify network access, authentication requirements, or user interaction.
Anyone running affected PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu versions below 2.6.4, from 2.7.0 to below 2.7.2, or from 2.8.0 to below 2.8.1 should check their installation.