Moderate severityNVD Advisory· Published Nov 18, 2022· Updated Apr 22, 2025
`CHECK_EQ` fail via input in `SparseMatrixNNZ` in Tensorflow
CVE-2022-41901
Description
TensorFlow is an open source platform for machine learning. An input sparse_matrix that is not a matrix with a shape with rank 0 will trigger a CHECK fail in tf.raw_ops.SparseMatrixNNZ. We have patched the issue in GitHub commit f856d02e5322821aad155dad9b3acab1e9f5d693. The fix will be included in TensorFlow 2.11. We will also cherrypick this commit on TensorFlow 2.10.1, 2.9.3, and TensorFlow 2.8.4, as these are also affected and still in supported range.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
tensorflowPyPI | < 2.8.4 | 2.8.4 |
tensorflowPyPI | >= 2.9.0, < 2.9.3 | 2.9.3 |
tensorflowPyPI | >= 2.10.0, < 2.10.1 | 2.10.1 |
tensorflow-cpuPyPI | < 2.8.4 | 2.8.4 |
tensorflow-gpuPyPI | < 2.8.4 | 2.8.4 |
tensorflow-cpuPyPI | >= 2.9.0, < 2.9.3 | 2.9.3 |
tensorflow-gpuPyPI | >= 2.9.0, < 2.9.3 | 2.9.3 |
tensorflow-cpuPyPI | >= 2.10.0, < 2.10.1 | 2.10.1 |
tensorflow-gpuPyPI | >= 2.10.0, < 2.10.1 | 2.10.1 |
Affected products
5- osv-coords4 versions
< 2.8.4+ 3 more
- (no CPE)range: < 2.8.4
- (no CPE)range: < 2.8.4
- (no CPE)range: < 2.8.4
- (no CPE)range: < 2.8.4
- Range: >= 2.10.0, < 2.10.1
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-g9fm-r5mm-rf9fghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-41901ghsaADVISORY
- github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/sparse/sparse_matrix.hghsaWEB
- github.com/tensorflow/tensorflow/commit/f856d02e5322821aad155dad9b3acab1e9f5d693ghsaWEB
- github.com/tensorflow/tensorflow/security/advisories/GHSA-g9fm-r5mm-rf9fghsaWEB
News mentions
0No linked articles in our index yet.