Skip to content
LowVulnerability

CVE-2019-16778: TensorFlow heap buffer overflow in UnsortedSegmentSum with int32 Index

Identifier
CVE-2019-16778
Published
Record updated
View JSON
Affected
  • tensorflow < 1.15.0
  • tensorflow-cpu < 1.15.0
  • tensorflow-gpu < 1.15.0
Fixed in
1.15.0
  • tensorflow 1.15.0 released October 16, 2019, 62 days before disclosure
  • tensorflow-cpu 1.15.0 released October 16, 2019, 62 days before disclosure
  • tensorflow-gpu 1.15.0 released October 16, 2019, 62 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.8%

Summary

CVE-2019-16778 affects TensorFlow before 1.15. When the Index template argument is int32, a heap buffer overflow in UnsortedSegmentSum can occur because data_size and num_segments are truncated from int64 to int32, producing negative values that access out-of-bounds heap memory. The source says exploitation is unlikely and that the issue was detected and fixed internally in TensorFlow 1.15 and 2.0.

Mitigation

Fixed in TensorFlow 1.15 and 2.0, per the source. The linked patch commit is db4f9717c41bccc3ce10099ab61996b246099892.