Out of bounds write in `scatter_nd` op 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 |
|
≥ 2.8.0 · < 2.8.1≥ 2.9.0 · < 2.9.1
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an open source platform for machine learning. The `ScatterNd` function takes an input argument that determines the indices of of the output tensor. An input index greater than the output tensor or less than zero will either write content at the wrong index or trigger a crash. We have patched the issue in GitHub commit b4d4b4cb019bd7240a52daa4ba61e3cc814f0384. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
From the CVE record · GitHub_M
TensorFlow’s ScatterNd can write to the wrong index or crash when an input index is outside the output tensor’s bounds. An attacker who can supply such an index could trigger this behavior; the input does not specify whether network access, authentication, or user interaction is required.
Check installations of the PyPI tensorflow, tensorflow-cpu, or tensorflow-gpu packages below 2.7.2, from 2.8.0 up to but not including 2.8.1, or from 2.9.0 up to but not including 2.9.1.