CVE-2022-41901: `CHECK_EQ` fail via input in `SparseMatrixNNZ` in Tensorflow
TensorFlow is an open source platform for machine learning. An input sparsematrix that is not a matrix with a shape with rank 0 will trigger a CHECK fail in tf.rawops.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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.11Patch f856d02e5322821aad155dad9b3acab1e9f5d693 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.10.1Patch f856d02e5322821aad155dad9b3acab1e9f5d693 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.9.3Patch f856d02e5322821aad155dad9b3acab1e9f5d693 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.8.4Patch f856d02e5322821aad155dad9b3acab1e9f5d693
Event History
Frequently Asked Questions
What is the vulnerability ID?
The vulnerability ID is CVE-2022-41901.
What is the severity of CVE-2022-41901?
The severity of CVE-2022-41901 is high.
Which software is affected by CVE-2022-41901?
Google TensorFlow versions up to 2.8.4, versions between 2.9.0 and 2.9.3, and versions between 2.10.0 and 2.10.1 are affected by CVE-2022-41901.
How can I fix CVE-2022-41901?
You can fix CVE-2022-41901 by updating TensorFlow to a version higher than 2.10.1 or applying the patch provided in the GitHub commit f856d02e5322821aad155dad9b3acab1e9f5d693.
What is the Common Weakness Enumeration (CWE) ID for CVE-2022-41901?
The CWE ID for CVE-2022-41901 is CWE-617 and CWE-20.