Skip to content
MediumVulnerability

CVE-2020-15191: Tensorflow null pointer dereference in dlpack.to_dlpack on invalid argument

Identifier
CVE-2020-15191
Published
Record updated
View JSON
Affected
  • tensorflow = 2.2.0, fixed in 2.2.1, released September 24, 2020, 1 day before disclosure
  • tensorflow = 2.3.0, fixed in 2.3.1, released September 24, 2020, 1 day before disclosure
  • tensorflow-cpu = 2.2.0, fixed in 2.2.1, released September 24, 2020, 1 day before disclosure
  • and 3 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

CVE-2020-15191 affects TensorFlow versions before 2.2.1 and 2.3.1. When a user passes an invalid argument to `dlpack.to_dlpack`, validation code binds variables to `nullptr` and sets a `status` variable to the error, but the `status` value is never checked. Code that follows then binds references to null pointers, which is undefined behavior that the `-fsanitize=null` compiler option reports as an error.

Mitigation

Fixed in TensorFlow versions 2.2.1 and 2.3.1, via commit 22e07fb204386768e5bcbea563641ea11f96ceb8.