`CHECK` failure in `AvgPoolOp` in Tensorflow
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.2
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an open source platform for machine learning. The `AvgPoolOp` function takes an argument `ksize` that must be positive but is not checked. A negative `ksize` can trigger a `CHECK` failure and crash the program. We have patched the issue in GitHub commit 3a6ac52664c6c095aa2b114e742b0aa17fdce78f. 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 to this issue.
From the CVE record · GitHub_M
TensorFlow’s AvgPoolOp does not check that its `ksize` argument is positive. An attacker who can cause the function to receive a negative `ksize` can trigger a check failure and crash the program. The input does not specify network access, authentication, or user-interaction requirements.
Check PyPI tensorflow, tensorflow-cpu, and tensorflow-gpu installations on versions below 2.7.2, 2.8.0 through 2.8.0, or 2.9.0 through 2.9.1.