CVE-2021-37665: Incomplete validation in MKL requantization
(updated )
Due to incomplete validation in MKL implementation of requantization, an attacker can trigger undefined behavior via binding a reference to a null pointer or can access data outside the bounds of heap allocated arrays:
import tensorflow as tf
tf.raw_ops.RequantizationRangePerChannel(
input=[],
input_min=[0,0,0,0,0],
input_max=[1,1,1,1,1],
clip_value_max=1)
References
- github.com/advisories/GHSA-v82p-hv3v-p6qp
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-578.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-776.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-287.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/203214568f5bc237603dbab6e1fd389f1572f5c9
- github.com/tensorflow/tensorflow/commit/9e62869465573cb2d9b5053f1fa02a81fce21d69
- github.com/tensorflow/tensorflow/security/advisories/GHSA-v82p-hv3v-p6qp
- nvd.nist.gov/vuln/detail/CVE-2021-37665
Code Behaviors & Features
Detect and mitigate CVE-2021-37665 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 →