Skip to content
MediumVulnerability

CVE-2020-15201: Tensorflow heap buffer overflow in RaggedCountSparseOutput

Identifier
CVE-2020-15201
Published
Record updated
View JSON
Affected
  • tensorflow = 2.3.0
  • tensorflow-cpu = 2.3.0
  • tensorflow-gpu = 2.3.0
Fixed in
2.3.1
  • tensorflow 2.3.1 released September 24, 2020, 1 day before disclosure
  • tensorflow-cpu 2.3.1 released September 24, 2020, 1 day before disclosure
  • tensorflow-gpu 2.3.1 released September 24, 2020, 1 day before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

TensorFlow versions before 2.3.1 contain a flaw in the `RaggedCountSparseOutput` implementation, which does not validate that its input arguments form a valid ragged tensor. Specifically, the `splits` tensor is not checked to produce a valid partitioning of `values`, so a `splits` tensor that does not end with a value at least `num_values` lets the `while` loop read outside the bounds of `split_values`, causing a heap buffer overflow (CVE-2020-15201).

Mitigation

Patched in commit 3cbb917b4714766030b28eba9fb41bb97ce9ee02 and released in TensorFlow version 2.3.1.