Skip to content
HighVulnerability

CVE-2021-37648: TensorFlow null pointer dereference in tf.raw_ops.SaveV2 input validation

Identifier
CVE-2021-37648
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

TensorFlow's `tf.raw_ops.SaveV2` does not properly validate its inputs, so an attacker can trigger a null pointer dereference. The `ValidateInputs` check uses `OP_REQUIRES`, which sets an error status but does not stop execution of `Compute`, so the code continues as if no validation occurred.

Mitigation

Patched in GitHub commit 9728c60e136912a12d99ca56e106b7cce7af5986. 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.