CVE-2020-15202
published critical CVSS 3.1 · 9.0Integer truncation in Shard API usage
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| tensorflow | — | tensorflow< 1.15.4 · >= 2.0.0, < 2.0.3 · >= 2.1.0, < 2.1.2 · >= 2.2.0, < 2.2.1 · >= 2.3.0, < 2.3.1 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow2x86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow2-gnu-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow2-gnu-openmpi2-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow_cc2x86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow_cc2-gnu-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow_cc2-gnu-openmpi2-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow_framework2x86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
Show 23 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow_framework2-gnu-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | libtensorflow_framework2-gnu-openmpi2-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2x86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2-develx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2-docx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2-gnu-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2-gnu-openmpi2-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2-litex86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2-lite-develx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2_2_1_2-gnu-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2_2_1_2-gnu-hpc-develx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2_2_1_2-gnu-hpc-docx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2_2_1_2-gnu-openmpi2-hpcx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2_2_1_2-gnu-openmpi2-hpc-develx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| SUSE / openSUSE | openSUSE-Leap-15.2 | tensorflow2_2_1_2-gnu-openmpi2-hpc-docx86_64 | Advisory build | 2.1.2-lp152.7.3.1 | OPENSUSE-SU-2020:1766-1 |
| 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 |
| SUSE / openSUSE | openSUSE-Tumbleweed | tensorflow-lite-develx86_64 | Advisory build | 2.9.1-1.1 | OPENSUSE-SU-2024:12116-1 |
Description
In Tensorflow before versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1, the `Shard` API in TensorFlow expects the last argument to be a function taking two `int64` (i.e., `long long`) arguments. However, there are several places in TensorFlow where a lambda taking `int` or `int32` arguments is being used. In these cases, if the amount of work to be parallelized is large enough, integer truncation occurs. Depending on how the two arguments of the lambda are used, this can result in segfaults, read/write outside of heap allocated arrays, stack overflows, or data corruption. The issue is patched in commits 27b417360cbd671ef55915e4bb6bb06af8b8a832 and ca8c013b5e97b1373b3bb1c97ea655e69f31a575, and is released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.
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
- 9.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| tensorflow | tensorflow | < 1.15.4 (affected)>= 2.0.0, < 2.0.3 (affected)>= 2.1.0, < 2.1.2 (affected)>= 2.2.0, < 2.2.1 (affected)>= 2.3.0, < 2.3.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-197 {"CWE-197":"Numeric Truncation Error"}
- CWE-754 {"CWE-754":"Improper Check for Unusual or Exceptional Conditions"}
References
5- openSUSE-SU-2020:1766 http://lists.opensuse.org/opensuse-security-announce/2020-10/msg00065.html
- https://github.com/tensorflow/tensorflow/commit/27b417360cbd671ef55915e4bb6bb06af8b8a832
- https://github.com/tensorflow/tensorflow/commit/ca8c013b5e97b1373b3bb1c97ea655e69f31a575
- https://github.com/tensorflow/tensorflow/releases/tag/v2.3.1
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-h6fg-mjxg-hqq4
Provider assertions
2GitHub_M · cna
Integer truncation in Shard API usage
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 5901c646fda0855671302f62c67bd64afbcafedd12c20945fbb6400e3b4885ff
- Ingested
- 23 Sep 2026, 07:48:51 UTC
- Source record
- Official CVE record