Skip to content
MediumVulnerability

CVE-2020-15204: TensorFlow null pointer dereference in GetSessionHandle ops in eager mode

Identifier
CVE-2020-15204
Published
Record updated
View JSON
Affected
  • tensorflow < 1.15.4, fixed in 1.15.4, released September 24, 2020, 1 day before disclosure
  • tensorflow >= 2.0.0, < 2.0.3, fixed in 2.0.3, released September 24, 2020, 1 day before disclosure
  • tensorflow >= 2.1.0, < 2.1.2, fixed in 2.1.2, released September 24, 2020, 1 day before disclosure
  • and 12 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

In eager mode, TensorFlow versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 do not set the session state. Calling `tf.raw_ops.GetSessionHandle` or `tf.raw_ops.GetSessionHandleV2` therefore triggers a null pointer dereference, because `ctx->session_state()` returns `nullptr` and the code dereferences it immediately, causing a segmentation fault.

Mitigation

Fixed in commit 9a133d73ae4b4664d22bd1aa6d654fec13c52ee1, released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1 or 2.3.1.