VYPR
Moderate severityNVD Advisory· Published Feb 4, 2022· Updated Apr 22, 2025

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

CVE-2022-23579

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 SafeToRemoveIdentity 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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
tensorflowPyPI
< 2.5.32.5.3
tensorflowPyPI
>= 2.6.0, < 2.6.32.6.3
tensorflowPyPI
>= 2.7.0, < 2.7.12.7.1
tensorflow-cpuPyPI
< 2.5.32.5.3
tensorflow-cpuPyPI
>= 2.6.0, < 2.6.32.6.3
tensorflow-cpuPyPI
>= 2.7.0, < 2.7.12.7.1
tensorflow-gpuPyPI
< 2.5.32.5.3
tensorflow-gpuPyPI
>= 2.6.0, < 2.6.32.6.3
tensorflow-gpuPyPI
>= 2.7.0, < 2.7.12.7.1

Affected products

1

Patches

1
92dba16749fa

Prevent a null-pointer dereference / `CHECK`-fail in grappler.

https://github.com/tensorflow/tensorflowMihai MaruseacNov 11, 2021via ghsa
1 file changed · +4 2
  • tensorflow/core/grappler/optimizers/dependency_optimizer.cc+4 2 modified
    @@ -75,8 +75,10 @@ bool DependencyOptimizer::SafeToRemoveIdentity(const NodeDef& node) const {
       }
     
       const NodeDef* input = node_map_->GetNode(NodeName(node.input(0)));
    -  CHECK(input != nullptr) << "node = " << node.name()
    -                          << " input = " << node.input(0);
    +  if (input == nullptr) {
    +    VLOG(1) << "node = " << node.name() << " input = " << node.input(0);
    +    return false;
    +  }
       // Don't remove Identity nodes corresponding to Variable reads or following
       // Recv.
       if (IsVariable(*input) || IsRecv(*input)) {
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.