Division by zero in LSH in TensorFlow Lite
tensorflow
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
tensorflow
| Product | Affected | Fixed in |
|---|---|---|
| tensorflow PyPI |
|
|
| tensorflow-cpu PyPI |
|
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an end-to-end open source platform for machine learning. In affected versions an attacker can craft a TFLite model that would trigger a division by zero error in LSH [implementation](https://github.com/tensorflow/tensorflow/blob/149562d49faa709ea80df1d99fc41d005b81082a/tensorflow/lite/kernels/lsh_projection.cc#L118). We have patched the issue in GitHub commit 0575b640091680cfb70f4dd93e70658de43b94f9. The fix will be included in TensorFlow 2.6.0. We will also cherrypick thiscommit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
From the CVE record · GitHub_M
Affected TensorFlow versions can encounter a division-by-zero error in TFLite’s LSH projection implementation. An attacker can trigger the error by crafting a TFLite model that the affected implementation processes. The input does not specify whether this requires network access, authentication, or user interaction.
Engineers running PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu versions before 2.3.4, from 2.4.0 to before 2.4.3, or from 2.5.0 to before 2.5.1 should check their installations.