Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
5.5

CVE-2021-41199: TensorFlow Crashes When Processing Large Image Resize Requests

CVE-2021-41199 · published 5 years ago
Summary

TensorFlow's machine learning platform may crash if it handles large image resize requests. This can happen when a user tries to resize a very large image. Affected users should update to the latest version of TensorFlow to prevent crashes.

What to do
  • Update google tensorflow-gpu to version 2.6.1.
  • Update google tensorflow-gpu to version 2.5.2.
  • Update google tensorflow-gpu to version 2.4.4.
  • Update google inc. tensorflow-cpu to version 2.6.1.
  • Update google inc. tensorflow-cpu to version 2.5.2.
  • Update google inc. tensorflow-cpu to version 2.4.4.
  • Update google inc. tensorflow to version 2.6.1.
  • Update google inc. tensorflow to version 2.5.2.
  • Update google inc. tensorflow to version 2.4.4.
Affected software
Ecosystem VendorProductAffected versions
pip google tensorflow-gpu >= 2.6.0, < 2.6.1
>= 2.5.0, < 2.5.2
< 2.4.4
Fix: upgrade to 2.6.1
pip google inc. tensorflow-cpu >= 2.6.0, < 2.6.1
>= 2.5.0, < 2.5.2
< 2.4.4
Fix: upgrade to 2.6.1
– google tensorflow < 2.4.4
>= 2.5.0, < 2.5.2
2.6.0
cpe:2.3:a:google:tensorflow:*:*:*:*:*:*:*:*
pip google inc. tensorflow >= 2.6.0, < 2.6.1
>= 2.5.0, < 2.5.2
< 2.4.4
Fix: upgrade to 2.6.1
Original advisory text
TensorFlow is an open source platform for machine learning. In affected versions if `tf.image.resize` is called with a large input argument then the TensorFlow process will crash due to a `CHECK`-f...
TensorFlow is an open source platform for machine learning. In affected versions if `tf.image.resize` is called with a large input argument then the TensorFlow process will crash due to a `CHECK`-failure caused by an overflow. The number of elements in the output tensor is too much for the `int64_t` type and the overflow is detected via a `CHECK` statement. This aborts the process. The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
Fix within
Internet-facing 60 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit (estimated)
  • Gives an attacker partial control (estimated)
Severity
5.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-190Integer Overflow
Timeline
Published5 Nov 2021
Updated4 Nov 2026
First seen6 Mar 2026
Sources
Track software like this
Free during beta