Heap OOB read in `tf.raw_ops.SparseCountSparseOutput`
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 the shape inference functions for `SparseCountSparseOutput` can trigger a read outside of bounds of heap allocated array. 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.
From the CVE record · GitHub_M
In affected TensorFlow versions, shape inference for SparseCountSparseOutput can read outside a heap-allocated array. The input does not specify how an attacker could trigger this or whether network access, authentication, or user interaction is required.
Check PyPI tensorflow, tensorflow-cpu, and tensorflow-gpu installations at versions <2.4.4, >=2.5.0 and <2.5.2, >=2.6.0 and <2.6.1, or >=2.7.0rc0 and <2.7.0.