Skip to content
MediumVulnerability

CVE-2022-36004: TensorFlow denial of service through tf.random.gamma with large inputs

Identifier
CVE-2022-36004
Published
Record updated
View JSON
Affected
  • tensorflow < 2.7.2, fixed in 2.7.2, released May 16, 2022, 124 days before disclosure
  • tensorflow >= 2.8.0, < 2.8.1, fixed in 2.8.1, released May 16, 2022, 124 days before disclosure
  • tensorflow >= 2.9.0, < 2.9.1, fixed in 2.9.1, released May 23, 2022, 117 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

TensorFlow's tf.random.gamma fails a CHECK when it receives large input shape and rates, which can trigger a denial of service attack. The issue is patched in GitHub commit 552bfced6ce4809db5f3ca305f60ff80dd40c5a3 and will ship in TensorFlow 2.10.0. The fix will also be cherry-picked to TensorFlow 2.9.1, 2.8.1 and 2.7.2, which are affected and still supported.

Mitigation

Patched in GitHub commit 552bfced6ce4809db5f3ca305f60ff80dd40c5a3. The fix will be included in TensorFlow 2.10.0 and cherry-picked to TensorFlow 2.9.1, 2.8.1 and 2.7.2.