Skip to content
HighVulnerability

CVE-2021-37638: TensorFlow null pointer dereference in tf.raw_ops.RaggedTensorToTensor

Identifier
CVE-2021-37638
Published
Record updated
View JSON
Affected
  • tensorflow < 2.3.4, fixed in 2.3.4
  • tensorflow >= 2.4.0, < 2.4.3, fixed in 2.4.3
  • tensorflow = 2.5.0, fixed in 2.5.1
  • and 6 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

CVE-2021-37638 affects TensorFlow's `tf.raw_ops.RaggedTensorToTensor` API. Passing an invalid `row_partition_types` argument causes a null pointer dereference and undefined behavior, because the implementation reads the first element of a user-supplied list without checking that the list is non-empty.

Mitigation

Patched in GitHub commit 301ae88b331d37a2a16159b65b255f4f9eb39314. The fix will be included in TensorFlow 2.6.0, and the commit will be cherry-picked to TensorFlow 2.5.1, 2.4.3 and 2.3.4.