Division by 0 in `DenseCountSparseOutput`
Published May 14, 2021
2.0
LOWCVSS 4.0
EPSS 0.19%
Description
TensorFlow is an end-to-end open source platform for machine learning. An attacker can cause a denial of service via a FPE runtime error in `tf.raw_ops.DenseCountSparseOutput`. This is because the implementation(https://github.com/tensorflow/tensorflow/blob/efff014f3b2d8ef6141da30c806faf141297eca1/tensorflow/core/kernels/count_ops.cc#L123-L127) computes a divisor value from user data but does not check that the result is 0 before doing the division. Since `data` is given by the `values` argument, `num_batch_elements` is 0. The fix will be included in TensorFlow 2.5.0. We will also cherrypick this commit on TensorFlow 2.4.2, and TensorFlow 2.3.3, as these are also affected.
Affected products
-
- Version < 2.3.3StatusaffectedConstraints-
- Version >= 2.4.0, < 2.4.2StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| TensorFlow | TensorFlow | n/a |
|
- < 2.1.4
- ≥ 2.2.0 · < 2.2.3
- ≥ 2.3.0 · < 2.3.3
- ≥ 2.4.0 · < 2.4.2
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
1 other source (GHSA) ▾
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
No CVSS v3.0 score for this CVE.
AV:L/AC:L/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 4, 2026.
Score over time
2021-2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (10 key points)
Flat stretches are collapsed. Showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 4, 2026 | 0.19% (0.00189) | 7.71th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.19% (0.00189) | 8.65th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.01% (0.00012) | 0.82th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.04% (0.00044) | 14.77th | v3 (v2023.03.01) |
| Jun 9, 2024 | 0.04% (0.00044) | 12.69th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00044) | 10.67th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Jan 6, 2022 | 1.43% (0.01425) | 31.43th | v1 |
| Jan 5, 2022 | 0.32% (0.00321) | 6.33th | v5 (v2026.06.15) |
| May 15, 2021 | 0.78% (0.00777) | 0.00th | v1 |
References (7)
- https://github.com/advisories/GHSA-qg48-85hg-mqc5 Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-cpu/PYSEC-2021-482.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow-gpu/PYSEC-2021-680.yaml
- https://github.com/pypa/advisory-database/tree/main/vulns/tensorflow/PYSEC-2021-191.yaml
- https://github.com/tensorflow/tensorflow/commit/da5ff2daf618591f64b2b62d9d9803951b945e9f x_refsource_MISCPatchThird Party Advisory
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-qg48-85hg-mqc5 x_refsource_CONFIRMExploitPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2021-29554
Change history (0)
No recorded changes yet.