Skip to content
HighVulnerability

CVE-2022-23594: Tensorflow TFG dialect crash via modified SavedModel on disk

Identifier
CVE-2022-23594
Published
Record updated
View JSON
Affected
  • tensorflow = 2.7.0
  • tensorflow-cpu = 2.7.0
  • tensorflow-gpu = 2.7.0
Fixed in
2.7.1
  • tensorflow 2.7.1 released February 2, 2022, 3 days before disclosure
  • tensorflow-cpu 2.7.1 released February 2, 2022, 3 days before disclosure
  • tensorflow-gpu 2.7.1 released February 2, 2022, 3 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.1%

Summary

TensorFlow's TFG dialect (MLIR) assumes certain properties of an incoming `GraphDef` before converting it to the MLIR-based dialect. An attacker who alters the `SavedModel` format on disk to break these assumptions can crash the Python interpreter when the `GraphDef` is converted, and under certain scenarios heap out-of-bounds reads and writes are possible. The issues were found by fuzzing, and the advisory notes more weaknesses may exist and will be patched as found.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.