{"id":"CVE-2022-36012","published":"2022-09-16T22:55:15Z","modified":"2025-04-23T16:58:59Z","title":"Assertion fail on MLIR empty edge names in TensorFlow","vendor":"tensorflow","product":"tensorflow","tier":"tail","description":{"text":"TensorFlow is an open source platform for machine learning. When `mlir::tfg::ConvertGenericFunctionToFunctionDef` is given empty function attributes, it crashes. We have patched the issue in GitHub commit ad069af92392efee1418c48ff561fd3070a03d7b. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00716,"percentile":0.54688,"provenance":"source"},"cwes":[{"id":"CWE-617","name":"Reachable Assertion"}],"references":[{"url":"https://github.com/tensorflow/tensorflow/security/advisories/GHSA-jvhc-5hhr-w3v5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/tensorflow/tensorflow/commit/ad069af92392efee1418c48ff561fd3070a03d7b","tags":["x_refsource_MISC"]},{"url":"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/ir/importexport/functiondef_import.cc","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"tensorflow","affectedVersions":[{"vendor":"tensorflow","product":"tensorflow","versions":["< 2.7.2",">= 2.8.0, < 2.8.1",">= 2.9.0, < 2.9.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T13:57:42.760065Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"tensorflow","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-jvhc-5hhr-w3v5","PYSEC-2026-3210"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-cpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-jvhc-5hhr-w3v5","PYSEC-2026-3347"],"provenance":"source"},{"ecosystem":"PyPI","package":"tensorflow-gpu","vulnerableRanges":["<2.7.2",">=2.8.0, <2.8.1",">=2.9.0, <2.9.1"],"patched":["2.7.2","2.8.1","2.9.1"],"from":["GHSA-jvhc-5hhr-w3v5","PYSEC-2026-1015"],"provenance":"source"}],"summary":{"text":"A flaw in TensorFlow's MLIR TFG conversion code, specifically in the function mlir::tfg::ConvertGenericFunctionToFunctionDef, causes an assertion failure when it receives empty function attributes. An attacker with network access and no authentication or user interaction can trigger the crash by supplying the malformed input, though the attack is noted as having high complexity, which takes denial of service of the affected process as the impact.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:27Z"},"euvd":{"id":"EUVD-2022-6864","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-tensorflow-cve-2022-36011","parents":[{"from":"CVE-2022-36011","to":"CVE-2022-36012","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/ir/importexport/functiondef_import.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/1cf45b831eeb0cab8655c9c7c5d06ec6f45fc41b","https://github.com/tensorflow/tensorflow/commit/ad069af92392efee1418c48ff561fd3070a03d7b"],"basis":"shared function","functions":["ImportGenericFunction"]}]}],"children":[{"from":"CVE-2022-36012","to":"CVE-2023-25671","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["tensorflow/core/ir/importexport/functiondef_import.cc"],"commits":["https://github.com/tensorflow/tensorflow/commit/ad069af92392efee1418c48ff561fd3070a03d7b","https://github.com/tensorflow/tensorflow/commit/2eedc8f676d2c3b8be9492e547b2bc814c10b367","https://github.com/tensorflow/tensorflow/commit/760322a71ac9033e122ef1f4b1c62813021e5938"],"basis":"shared function","functions":["ImportGenericFunction","ImportNodes"]}]}]}}