Skip to content
HighVulnerability

CVE-2020-15208: tensorflow-lite out-of-bounds read and write from tensor dimension check

Identifier
CVE-2020-15208
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

TensorFlow Lite versions before 1.15.4, 2.0.3, 2.1.2, 2.2.1 and 2.3.1 determine the common dimension size of two tensors with a DCHECK that is a no-op outside debug builds, and the function always returns the first tensor's dimension. An attacker can craft tensors where that value exceeds the second tensor's, causing out-of-bounds reads and writes because the interpreter assumes both tensors hold enough data.

Mitigation

The issue is patched in commit 8ee24e7949a203d234489f9da2c5bf45a7d5157d and released in TensorFlow versions 1.15.4, 2.0.3, 2.1.2, 2.2.1, or 2.3.1.