Null dereference on MLIR on empty function attributes 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 `mlir::tfg::ConvertGenericFunctionToFunctionDef` is given empty function attributes, it gives a null dereference. We have patched the issue in GitHub commit 1cf45b831eeb0cab8655c9c7c5d06ec6f45fc41b. 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 can encounter a null dereference when `mlir::tfg::ConvertGenericFunctionToFunctionDef` receives empty function attributes. This can cause the operation to fail. The input does not specify how an attacker could reach the operation or whether authentication or user interaction is required.
Teams using PyPI `tensorflow`, `tensorflow-cpu`, or `tensorflow-gpu` versions below 2.7.2, from 2.8.0 to below 2.8.1, or from 2.9.0 to below 2.9.1 should check their deployments.