CVE-2021-41219
published high CVSS 3.1 · 7.8Undefined behavior via `nullptr` reference binding in sparse matrix multiplication
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 the code for sparse matrix multiplication is vulnerable to undefined behavior via binding a reference to `nullptr`. This occurs whenever the dimensions of `a` or `b` are 0 or less. In the case on one of these is 0, an empty output tensor should be allocated (to conserve the invariant that output tensors are always allocated when the operation is successful) but nothing should be written to it (that is, we should return early from the kernel implementation). Otherwise, attempts to write to this empty tensor would result in heap OOB access. 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
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/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 | >= 2.6.0, < 2.6.1 (affected)>= 2.5.0, < 2.5.2 (affected)< 2.4.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-824 CWE-824: Access of Uninitialized Pointer
References
2Provider assertions
2GitHub_M · cna
Undefined behavior via `nullptr` reference binding in sparse matrix multiplication
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 280f8afca346ba9f05802422eb35b27347d1c9d16a0709b6e3e29182477d9019
- Ingested
- 23 Sep 2026, 07:56:14 UTC
- Source record
- Official CVE record