CVE-2021-29554
published low CVSS 3.1 · 2.5Division by 0 in `DenseCountSparseOutput`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tensorflow | — | tensorflow< 2.3.3 · >= 2.4.0, < 2.4.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 2.5 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tensorflow | tensorflow | < 2.3.3 (affected)>= 2.4.0, < 2.4.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-369 CWE-369: Divide By Zero
References
2Provider assertions
2GitHub_M · cna
Division by 0 in `DenseCountSparseOutput`
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 39353c7a74a51d8cceae4f21c36528b979a79ee2947cadbae82b748e25b38b0f
- Ingested
- 23 Sep 2026, 07:53:55 UTC
- Source record
- Official CVE record