← back
CVE-2022-23581

`CHECK`-failures during Grappler's `IsSimplifiableReshape` in Tensorflow

CVSS 6.5 MEDIUMEPSS 1.2%CWE-617
In short

TensorFlow's Grappler optimizer crashes when processing specially modified model files, causing the application to stop working. This allows an attacker with a modified model file to disrupt service.

Technical detail

A CHECK assertion failure in the IsSimplifiableReshape function of Grappler optimizer can be triggered by a malformed SavedModel, leading to denial of service. The attack requires the ability to supply or alter a SavedModel file before it is loaded and optimized by TensorFlow's Grappler component.

Summary generated and translated by AI from the official description.
Tensorflow is an Open Source Machine Learning Framework. The Grappler optimizer in TensorFlow can be used to cause a denial of service by altering a `SavedModel` such that `IsSimplifiableReshape` would trigger `CHECK` failures. The fix will be included in TensorFlow 2.8.0. We will also cherrypick this commit on TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these are also affected and still in supported range.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected products
tensorflow · tensorflow

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →