CVE-2022-36011
published 2022-09-16CVE-2022-36011: TensorFlow is an open source platform for machine learning. When `mlir::tfg::ConvertGenericFunctionToFunctionDef` is given empty function attributes, it gives…
PriorityP335high7.5CVSS 3.1
AVNACLPRNUINSUCNINAH
EPSS
0.41%
33.3th percentile
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.
Affected
11 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | tensorflow | — | — |
| tensorflow | < 2.7.2 | 2.7.2 | |
| tensorflow | — | — | |
| tensorflow | >= 2.8.0 < 2.8.1 | 2.8.1 | |
| tensorflow | >= 2.9.0 < 2.9.1 | 2.9.1 | |
| intel | optimization_for_tensorflow | >= 0 < 2.7.2 | 2.7.2 |
| intel | optimization_for_tensorflow | >= 2.8.0 < 2.8.1 | 2.8.1 |
| intel | optimization_for_tensorflow | >= 2.9.0 < 2.9.1 | 2.9.1 |
| tensorflow | tensorflow | < 2.7.2 | 2.7.2 |
| tensorflow | tensorflow | — | — |
| tensorflow | tensorflow | — | — |
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vendor_debian5.9LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2022-36011: tensorflow - TensorFlow is an open source platform for machine learning. When `mlir::tfg::Con...
vendor_debian·2022·CVSS 5.9
CVE-2022-36011 [MEDIUM] CVE-2022-36011: tensorflow - TensorFlow is an open source platform for machine learning. When `mlir::tfg::Con...
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.
Scope: local
forky: resolved
sid: resolved
OSV
TensorFlow vulnerable to null dereference on MLIR on empty function attributes
osv·2022-09-16
CVE-2022-36011 [MEDIUM] TensorFlow vulnerable to null dereference on MLIR on empty function attributes
TensorFlow vulnerable to null dereference on MLIR on empty function attributes
### Impact
When [`mlir::tfg::ConvertGenericFunctionToFunctionDef`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/importexport/functiondef_import.cc) is given empty function attributes, it gives a null dereference.
```cpp
// Import the function attributes with a `tf.` prefix to match the current
// infrastructure expectations.
for (const auto& namedAttr : func.attr()) {
const std::string& name = "tf." + namedAttr.first;
const AttrValue& tf_attr = namedAttr.second;
TF_ASSIGN_OR_RETURN(Attribute attr,
ConvertAttributeValue(tf_attr, builder, tfgDialect));
attrs.append(name, attr);
}
```
If `namedAttr.first` is empty, it will crash.
### Patches
We have patched the issue in GitHub commit [1
GHSA
TensorFlow vulnerable to null dereference on MLIR on empty function attributes
ghsa·2022-09-16
CVE-2022-36011 [MEDIUM] CWE-476 TensorFlow vulnerable to null dereference on MLIR on empty function attributes
TensorFlow vulnerable to null dereference on MLIR on empty function attributes
### Impact
When [`mlir::tfg::ConvertGenericFunctionToFunctionDef`](https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/importexport/functiondef_import.cc) is given empty function attributes, it gives a null dereference.
```cpp
// Import the function attributes with a `tf.` prefix to match the current
// infrastructure expectations.
for (const auto& namedAttr : func.attr()) {
const std::string& name = "tf." + namedAttr.first;
const AttrValue& tf_attr = namedAttr.second;
TF_ASSIGN_OR_RETURN(Attribute attr,
ConvertAttributeValue(tf_attr, builder, tfgDialect));
attrs.append(name, attr);
}
```
If `namedAttr.first` is empty, it will crash.
### Patches
We have patched the issue in GitHub commit [1
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/tensorflow/tensorflow/commit/1cf45b831eeb0cab8655c9c7c5d06ec6f45fc41bhttps://github.com/tensorflow/tensorflow/security/advisories/GHSA-fv43-93gv-vm8fhttps://github.com/tensorflow/tensorflow/commit/1cf45b831eeb0cab8655c9c7c5d06ec6f45fc41bhttps://github.com/tensorflow/tensorflow/security/advisories/GHSA-fv43-93gv-vm8f
2022-09-16
Published