Skip to content
MediumVulnerability

CVE-2022-41901: TensorFlow sparse matrix input validation flaw in tf.raw_ops.SparseMatrixNNZ

Identifier
CVE-2022-41901
Published
Record updated
View JSON
Affected
  • tensorflow < 2.8.4, fixed in 2.8.4, released November 16, 2022, 3 days before disclosure
  • tensorflow >= 2.9.0, < 2.9.3, fixed in 2.9.3, released November 16, 2022, 3 days before disclosure
  • tensorflow >= 2.10.0, < 2.10.1, fixed in 2.10.1, released November 16, 2022, 3 days before disclosure
  • and 6 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

CVE-2022-41901 affects TensorFlow. When an input `sparse_matrix` is not a matrix with a rank 0 shape, it triggers a `CHECK` fail in `tf.raw_ops.SparseMatrixNNZ`. The issue is patched in GitHub commit f856d02e5322821aad155dad9b3acab1e9f5d693 and will be included in TensorFlow 2.11.

Mitigation

The fix is GitHub commit f856d02e5322821aad155dad9b3acab1e9f5d693, which will be included in TensorFlow 2.11. The commit will also be cherry-picked to TensorFlow 2.10.1, 2.9.3, and 2.8.4.