CVE-2021-41202
published medium CVSS 3.1 · 5.5Overflow/crash in `tf.range`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tensorflow | — | tensorflow>= 2.6.0, < 2.6.1 · >= 2.5.0, < 2.5.2 · < 2.4.4 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-liteaarch64 | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-liteppc64le | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-lites390x | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-litex86_64 | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-lite-develaarch64 | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-lite-develppc64le | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-lite-devels390x | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-lite-develx86_64 | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
Description
TensorFlow is an open source platform for machine learning. In affected versions while calculating the size of the output within the `tf.range` kernel, there is a conditional statement of type `int64 = condition ? int64 : double`. Due to C++ implicit conversion rules, both branches of the condition will be cast to `double` and the result would be truncated before the assignment. This result in overflows. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tensorflow | tensorflow | >= 2.6.0, < 2.6.1 (affected)>= 2.5.0, < 2.5.2 (affected)< 2.4.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-681 CWE-681: Incorrect Conversion between Numeric Types
References
5- https://github.com/tensorflow/tensorflow/commit/1b0e0ec27e7895b9985076eab32445026ae5ca94
- https://github.com/tensorflow/tensorflow/commit/6d94002a09711d297dbba90390d5482b76113899
- https://github.com/tensorflow/tensorflow/issues/46889
- https://github.com/tensorflow/tensorflow/issues/46912
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-xrqm-fpgr-6hhx
Provider assertions
2GitHub_M · cna
Overflow/crash in `tf.range`
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 29669da1030a6421b899cbe0ae252b42e14ca46f794a923e59445f331ed21b46
- Ingested
- 23 Sep 2026, 07:56:14 UTC
- Source record
- Official CVE record