CVE-2022-36015: TensorFlow RangeSize Integer Overflow Vulnerability

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2022-36015: Integer overflow in math ops in TensorFlow. Affects tensorflow 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-36015 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

TensorFlow is an open source platform for machine learning. It provides a comprehensive ecosystem of tools, libraries, and resources for developing and deploying machine learning models. TensorFlow is widely used in various industries and research fields for tasks such as image recognition, natural language processing, and recommendation systems. However, a vulnerability has been discovered in TensorFlow that could potentially lead to a crash when certain values are passed to the RangeSize function.

Vulnerability Detail

The vulnerability in TensorFlow arises when the RangeSize function receives values that cannot be accommodated within an int64_t data type. This integer overflow can result in a crash of the application. An attacker could potentially exploit this vulnerability to cause a denial of service (DoS) condition or disrupt the functioning of a TensorFlow-based machine learning system. The issue has been addressed in the GitHub commit 37e64539cd29fcfb814c4451152a60f5d107b0f0 and will be included in TensorFlow 2.10.0. The fix has also been backported to TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2.

How To Fix

Fixed versions by release line

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

  • < 2.7.2 2.7.2
  • >= 2.8.0, < 2.8.1 2.8.1
  • >= 2.9.0, < 2.9.1 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 →

Conclusion

The TensorFlow RangeSize Integer Overflow vulnerability can lead to application crashes and potential denial of service (DoS) attacks. It is crucial to update TensorFlow to the fixed versions or apply the provided patches to ensure the security and stability of machine learning systems. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tensorflow →

Share this vulnerability

FAQ

TensorFlow is an open source platform for machine learning that provides tools and resources for developing and deploying machine learning models.

The vulnerability can lead to a crash of the application and potentially be exploited by an attacker to cause a denial of service (DoS) condition.

To fix this vulnerability, update TensorFlow to version 2.10.0 or apply the respective patches for earlier versions.

There are no known workarounds for this vulnerability. It is recommended to update to the fixed versions of TensorFlow.

More information about this vulnerability can be found in the GitHub commit 37e64539cd29fcfb814c4451152a60f5d107b0f0 and the official TensorFlow documentation.

Related vulnerabilities

Recent vulnerabilities recorded for tensorflow.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

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

  • < 2.7.2 2.7.2
  • >= 2.8.0, < 2.8.1 2.8.1
  • >= 2.9.0, < 2.9.1 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