Skip to content
MediumVulnerability

CVE-2020-26268: TensorFlow crash through tf.raw_ops.ImmutableConst on memory mapped files

Identifier
CVE-2020-26268
Published
Record updated
View JSON
Affected
  • tensorflow < 1.15.5, fixed in 1.15.5, released January 6, 2021, 26 days after disclosure
  • tensorflow >= 2.0.0, < 2.0.4, fixed in 2.0.4, released January 6, 2021, 26 days after disclosure
  • tensorflow >= 2.1.0, < 2.1.3, fixed in 2.1.3, released January 6, 2021, 26 days after disclosure
  • and 12 more
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.2%

Summary

In affected versions of TensorFlow, the tf.raw_ops.ImmutableConst operation returns a constant tensor backed by a memory mapped file that is assumed immutable. When the tensor type is not an integral type, the operation writes to that memory area and crashes the Python interpreter. Once the file holds enough bytes for the tensor, the snippet causes a segmentation fault, because the allocator does not override the virtual method needed to be marked as returning an opaque handle.

Mitigation

This is fixed in versions 1.15.5, 2.0.4, 2.1.3, 2.2.2, 2.3.2, and 2.4.0.