GHSA-43q8-3fv7-pr5x Improper Validation of Integrity Check Value in TensorFlow
- Published
- Updated
- Exploit status
- No public exploit known
Description
Impact
The implementation of tf.sparse.split does not fully validate the input arguments. Hence, a malicious user can trigger a denial of service via a segfault or a heap OOB read:
import tensorflow as tf
data = tf.random.uniform([1, 32, 32], dtype=tf.float32)
axis = [1, 2]
x = tf.sparse.from_dense(data)
result = tf.sparse.split(x,3, axis=axis)
The code assumes axis is a scalar. This is another instance of TFSA-2021-190 (CVE-2021-41206).
Patches
We have patched the issue in GitHub commit 61bf91e768173b001d56923600b40d9a95a04ad5 (merging #53695).
The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
For more information
Please consult our security guide for more information regarding the security model and how to contact us with issues and questions.
Attribution
This vulnerability has been reported externally via a GitHub issue.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi tensorflow(PyPI) | < 2.5.3; = 0.12.0; = 0.12.1; = 1.0.0 +61 more | 2.5.3, 2.6.3, 2.7.1 | Fixed |
| pypi tensorflow-cpu(PyPI) | < 2.5.3; = 1.15.0; = 2.1.0; = 2.1.1 +26 more | 2.5.3, 2.6.3, 2.7.1 | Fixed |
| pypi tensorflow-gpu(PyPI) | < 2.5.3; = 0.12.0; = 0.12.1; = 1.0.0 +61 more | 2.5.3, 2.6.3, 2.7.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi tensorflow(PyPI) | < 2.5.3 | 2.5.3 |
| pypi tensorflow(PyPI) | >= 2.6.0, < 2.6.3 | 2.6.3 |
| pypi tensorflow(PyPI) | = 2.7.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | < 2.5.3 | 2.5.3 |
| pypi tensorflow-cpu(PyPI) | >= 2.6.0, < 2.6.3 | 2.6.3 |
| pypi tensorflow-cpu(PyPI) | = 2.7.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | < 2.5.3 | 2.5.3 |
| pypi tensorflow-gpu(PyPI) | >= 2.6.0, < 2.6.3 | 2.6.3 |
| pypi tensorflow-gpu(PyPI) | = 2.7.0 | No fix listed |
| pypi tensorflow(PyPI) | = 0.12.0 | No fix listed |
| pypi tensorflow(PyPI) | = 0.12.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.0.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.0.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.1.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.10.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.10.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.11.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.12.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.12.2 | No fix listed |
| pypi tensorflow(PyPI) | = 1.12.3 | No fix listed |
| pypi tensorflow(PyPI) | = 1.13.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.13.2 | No fix listed |
| pypi tensorflow(PyPI) | = 1.14.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.15.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.15.2 | No fix listed |
Show 135 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi tensorflow(PyPI) | = 1.15.3 | No fix listed |
| pypi tensorflow(PyPI) | = 1.15.4 | No fix listed |
| pypi tensorflow(PyPI) | = 1.15.5 | No fix listed |
| pypi tensorflow(PyPI) | = 1.2.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.2.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.3.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.4.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.4.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.5.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.5.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.6.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.7.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.7.1 | No fix listed |
| pypi tensorflow(PyPI) | = 1.8.0 | No fix listed |
| pypi tensorflow(PyPI) | = 1.9.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.0.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.0.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.0.2 | No fix listed |
| pypi tensorflow(PyPI) | = 2.0.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.0.4 | No fix listed |
| pypi tensorflow(PyPI) | = 2.1.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.1.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.1.2 | No fix listed |
| pypi tensorflow(PyPI) | = 2.1.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.1.4 | No fix listed |
| pypi tensorflow(PyPI) | = 2.2.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.2.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.2.2 | No fix listed |
| pypi tensorflow(PyPI) | = 2.2.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.3.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.3.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.3.2 | No fix listed |
| pypi tensorflow(PyPI) | = 2.3.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.3.4 | No fix listed |
| pypi tensorflow(PyPI) | = 2.4.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.4.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.4.2 | No fix listed |
| pypi tensorflow(PyPI) | = 2.4.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.4.4 | No fix listed |
| pypi tensorflow(PyPI) | = 2.5.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.5.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.5.2 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.2 | No fix listed |
| pypi tensorflow(PyPI) | >= 2.7.0, < 2.7.1 | 2.7.1 |
| pypi tensorflow-cpu(PyPI) | = 1.15.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.1.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.1.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.1.2 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.1.3 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.1.4 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.2.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.2.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.2.2 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.2.3 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.3.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.3.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.3.2 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.3.3 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.3.4 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.4.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.4.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.4.2 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.4.3 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.4.4 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.5.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.5.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.5.2 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.6.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.6.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.6.2 | No fix listed |
| pypi tensorflow-cpu(PyPI) | >= 2.7.0, < 2.7.1 | 2.7.1 |
| pypi tensorflow-gpu(PyPI) | = 0.12.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 0.12.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.0.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.0.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.1.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.10.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.10.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.11.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.12.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.12.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.12.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.13.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.13.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.14.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.15.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.15.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.15.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.15.4 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.15.5 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.2.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.2.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.3.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.4.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.4.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.5.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.5.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.6.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.7.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.7.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.8.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 1.9.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.0.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.0.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.0.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.0.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.0.4 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.1.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.1.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.1.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.1.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.1.4 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.2.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.2.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.2.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.2.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.3.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.3.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.3.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.3.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.3.4 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.4.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.4.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.4.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.4.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.4.4 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.5.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.5.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.5.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.6.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.6.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.6.2 | No fix listed |
| pypi tensorflow-gpu(PyPI) | >= 2.7.0, < 2.7.1 | 2.7.1 |
References
- github.com vendor-advisory
- github.com vendor-advisory
- github.com patch
- github.com patch
- github.com
- github.com product