GHSA-mw6j-hh29-h379 `CHECK` failure in depthwise ops via overflows
- Published
- Updated
- Exploit status
- No public exploit known
Description
Impact
The implementation of depthwise ops in TensorFlow is vulnerable to a denial of service via CHECK-failure (assertion failure) caused by overflowing the number of elements in a tensor:
import tensorflow as tf
input = tf.constant(1, shape=[1, 4, 4, 3], dtype=tf.float32)
filter_sizes = tf.constant(1879048192, shape=[13], dtype=tf.int32)
out_backprop = tf.constant(1, shape=[1, 4, 4, 3], dtype=tf.float32)
tf.raw_ops.DepthwiseConv2dNativeBackpropFilter(
input=input, filter_sizes=filter_sizes, out_backprop=out_backprop, strides=[1, 1, 1, 1], padding="SAME")
This is another instance of TFSA-2021-198 (CVE-2021-41197).
Patches
We have patched the issue in GitHub commit 3796cc4fcd93ae55812a457abc96dcd55fbb854b.
The fix will be included in TensorFlow 2.9.0. We will also cherrypick this commit on TensorFlow 2.8.1, TensorFlow 2.7.2, and TensorFlow 2.6.4, 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 by Neophytos Christou from Secure Systems Lab at Brown University.
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pypi tensorflow(PyPI) | < 2.6.4; = 0.12.0; = 0.12.1; = 1.0.0 +68 more | 2.6.4, 2.7.2, 2.8.1 | Fixed |
| pypi tensorflow-cpu(PyPI) | < 2.6.4; = 1.15.0; = 2.1.0; = 2.1.1 +30 more | 2.6.4, 2.7.2, 2.8.1 | Fixed |
| pypi tensorflow-gpu(PyPI) | < 2.6.4; = 0.12.0; = 0.12.1; = 1.0.0 +65 more | 2.6.4, 2.7.2, 2.8.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi tensorflow(PyPI) | < 2.6.4 | 2.6.4 |
| pypi tensorflow(PyPI) | >= 2.7.0, < 2.7.2 | 2.7.2 |
| pypi tensorflow(PyPI) | >= 2.8.0, < 2.8.1 | 2.8.1 |
| pypi tensorflow-cpu(PyPI) | < 2.6.4 | 2.6.4 |
| pypi tensorflow-cpu(PyPI) | >= 2.7.0, < 2.7.2 | 2.7.2 |
| pypi tensorflow-cpu(PyPI) | >= 2.8.0, < 2.8.1 | 2.8.1 |
| pypi tensorflow-gpu(PyPI) | < 2.6.4 | 2.6.4 |
| pypi tensorflow-gpu(PyPI) | >= 2.7.0, < 2.7.2 | 2.7.2 |
| pypi tensorflow-gpu(PyPI) | >= 2.8.0, < 2.8.1 | 2.8.1 |
| 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 150 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.5.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.0rc0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.0rc1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.6.0rc2 | 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.6.3 | No fix listed |
| pypi tensorflow(PyPI) | = 2.7.0 | No fix listed |
| pypi tensorflow(PyPI) | = 2.7.1 | No fix listed |
| pypi tensorflow(PyPI) | = 2.8.0 | No fix listed |
| 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.5.3 | 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.6.3 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.7.0 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.7.1 | No fix listed |
| pypi tensorflow-cpu(PyPI) | = 2.8.0 | No fix listed |
| 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.5.3 | 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.6.3 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.7.0 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.7.1 | No fix listed |
| pypi tensorflow-gpu(PyPI) | = 2.8.0 | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- github.com
- github.com
- github.com product