Missing validation during checkpoint loading
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an open source platform for machine learning. In affected versions an attacker can trigger undefined behavior, integer overflows, segfaults and `CHECK`-fail crashes if they can change saved checkpoints from outside of TensorFlow. This is because the checkpoints loading infrastructure is missing validation for invalid file formats. The fixes will be included in TensorFlow 2.7.0. We will also cherrypick these commits on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range.
From the CVE record · GitHub_M
TensorFlow checkpoint loading does not validate invalid file formats. An attacker who can modify saved checkpoints outside TensorFlow can trigger integer overflows, undefined behavior, segfaults, or CHECK-fail crashes when those checkpoints are loaded.
Teams using PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu versions before 2.4.4, 2.5.0–2.5.1, 2.6.0, or 2.7.0 release candidates should check their installations.