`CHECK` fail in `tf.linalg.matrix_rank` 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.1
|
| tensorflow-gpu PyPI |
|
|
TensorFlow is an open source platform for machine learning. When `tf.linalg.matrix_rank` receives an empty input `a`, the GPU kernel gives a `CHECK` fail that can be used to trigger a denial of service attack. We have patched the issue in GitHub commit c55b476aa0e0bd4ee99d0f3ad18d9d706cd1260a. 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
The GPU kernel for `tf.linalg.matrix_rank` fails a `CHECK` when it receives an empty input. An attacker who can cause that input to reach the kernel can trigger a denial of service. The input does not specify network access, authentication requirements, or user interaction.
Check deployments using the PyPI packages tensorflow, tensorflow-cpu, or tensorflow-gpu at versions below 2.7.2, from 2.8.0 to below 2.8.1, or from 2.9.0 to below 2.9.1.