CVE-2022-36000: TensorFlow GPU Null Dereference Vulnerability in Eig Function

tensorflow-gpu Updated 07 Jul 2026

Summary

07/07/2026
Yes i
Medium
5.9

CVE-2022-36000: TensorFlow vulnerable to null dereference on MLIR on empty function attributes. Affects tensorflow-gpu across 3 version ranges.

< 2.7.2 >= 2.8.0, < 2.8.1 >= 2.9.0, < 2.9.1

Fixed in 2.7.2, 2.8.1 or 2.9.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-36000 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

TensorFlow is an open-source machine learning framework that provides a comprehensive ecosystem for building and deploying machine learning models. It supports various tasks, including deep learning and numerical computation. TensorFlow GPU is a variant optimized for performance on NVIDIA GPUs. The framework is widely used in both research and production environments. However, it has been found to have a vulnerability that can lead to a denial of service when incorrect input is provided to the Eig function.

Vulnerability Detail

The vulnerability arises from the ability to feed an incorrect 'Tout' input to the Eig function in TensorFlow, which can lead to a null dereference. This results in a CHECK failure, potentially causing a denial of service attack. The issue can be exploited by providing a complex data type that is not compatible with the expected input, leading to application crashes and service interruptions.

How To Fix

Latest published version: 2.12.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-gpu==2.12.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.7.2 2.7.2
    pip install --upgrade "tensorflow-gpu==2.7.2"
  • >= 2.8.0, < 2.8.1 2.8.1
    pip install --upgrade "tensorflow-gpu==2.8.1"
  • >= 2.9.0, < 2.9.1 2.9.1
    pip install --upgrade "tensorflow-gpu==2.9.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary workaround, avoid using the Eig function with incorrect 'Tout' inputs. Ensure that the input data types are compatible with the expected types to prevent triggering the vulnerability. Here is an example of how to correctly use the Eig function:

import tensorflow as tf
import numpy as np
arg_0 = tf.constant(value=np.random.random(size=(2, 2)), shape=(2, 2), dtype=tf.float32)
arg_1 = tf.float32  # Correct data type
arg_2 = True
arg_3 = ''
tf.raw_ops.Eig(input=arg_0, Tout=arg_1, compute_v=arg_2, name=arg_3)

Conclusion

The CVE-2022-36000 vulnerability in TensorFlow GPU poses a risk of denial of service due to incorrect input handling in the Eig function. Users are advised to update their packages to the latest patched versions to mitigate this risk. Additionally, using Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for tensorflow-gpu →

Share this vulnerability

FAQ

CVE-2022-36000 is a vulnerability in TensorFlow GPU that allows for a null dereference when incorrect input is provided to the Eig function, potentially leading to a denial of service.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.

The affected versions include TensorFlow GPU versions prior to 2.7.2, 2.8.1, and 2.9.1.

If you cannot update your TensorFlow version, ensure that you do not use the Eig function with incorrect 'Tout' inputs to avoid triggering the vulnerability.

The CVSS score of this vulnerability is 5.9, indicating a moderate severity level.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow-gpu.

How To Fix

Latest published version: 2.12.0 as of 22 Oct 2026

pip install --upgrade "tensorflow-gpu==2.12.0"

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 2.7.2 2.7.2
    pip install --upgrade "tensorflow-gpu==2.7.2"
  • >= 2.8.0, < 2.8.1 2.8.1
    pip install --upgrade "tensorflow-gpu==2.8.1"
  • >= 2.9.0, < 2.9.1 2.9.1
    pip install --upgrade "tensorflow-gpu==2.9.1"

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback