Read and Write outside of bounds in TFLite
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
≥ 2.6.0 · < 2.6.3≥ 2.7.0 · < 2.7.1
|
| tensorflow-gpu PyPI |
|
|
Tensorflow is an Open Source Machine Learning Framework. An attacker can craft a TFLite model that would allow limited reads and writes outside of arrays in TFLite. This exploits missing validation in the conversion from sparse tensors to dense tensors. The fix is included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range. Users are advised to upgrade as soon as possible.
From the CVE record · GitHub_M
TFLite lacks validation when converting sparse tensors to dense tensors. An attacker can craft a TFLite model that causes limited reads and writes outside arrays when the model is processed. The input does not specify network access or authentication requirements.
Teams using PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu versions below 2.5.3, from 2.6.0 to below 2.6.3, or from 2.7.0 to below 2.7.1 should check their installations.