CVE-2022-21739: TensorFlow - QuantizedMaxPool Reference Binding to Null Pointer

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
Medium
Not published

CVE-2022-21739: Null pointer dereference in TensorFlow. Affects tensorflow across 3 version ranges.

< 2.5.3 >= 2.6.0, < 2.6.3 >= 2.7.0, < 2.7.1

Fixed in 2.5.3, 2.6.3 or 2.7.1, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-21739 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. It offers a range of functionalities and tools for training and deploying machine learning models efficiently. However, a vulnerability has been discovered in the implementation of QuantizedMaxPool in TensorFlow.

Vulnerability Detail

The vulnerability in TensorFlow's QuantizedMaxPool implementation allows user-controlled inputs to trigger a reference binding to a null pointer. This undefined behavior can lead to unexpected program execution and potential security risks. Attackers may exploit this vulnerability to cause denial of service (DoS) attacks or execute arbitrary code. The issue has been identified and will be fixed in TensorFlow 2.8.0. Additionally, the fix will be backported to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, as these versions are also affected and within the supported range.

How To Fix

Fixed versions by release line

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

  • < 2.5.3 2.5.3
  • >= 2.6.0, < 2.6.3 2.6.3
  • >= 2.7.0, < 2.7.1 2.7.1

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

Workaround

There is no specific workaround available for this vulnerability. It is recommended to update TensorFlow to the fixed versions mentioned above.

Conclusion

The vulnerability in TensorFlow's QuantizedMaxPool implementation can have serious security implications. It is crucial to update TensorFlow to the fixed versions mentioned above to ensure the security and stability of machine learning models. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open-source machine learning framework developed by Google. It provides a comprehensive ecosystem for building and deploying machine learning models.

The vulnerability in TensorFlow's QuantizedMaxPool implementation can lead to unexpected program execution and potential security risks. Attackers may exploit this vulnerability to cause denial of service (DoS) attacks or execute arbitrary code.

The vulnerability affects TensorFlow versions 2.5.2, 2.6.0, and 2.7.0. The fix will be included in TensorFlow 2.8.0 and backported to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3.

To mitigate this vulnerability, it is recommended to update TensorFlow to the fixed versions: TensorFlow 2.8.0, TensorFlow 2.7.1, TensorFlow 2.6.3, or TensorFlow 2.5.3.

For more information about this vulnerability, you can refer to the official GitHub repository of TensorFlow or the vulnerability database provided by Bitnami.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

How To Fix

Fixed versions by release line

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

  • < 2.5.3 2.5.3
  • >= 2.6.0, < 2.6.3 2.6.3
  • >= 2.7.0, < 2.7.1 2.7.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