CVE-2022-35982: Denial of Service Vulnerability in TensorFlow

tensorflow Updated 02 Oct 2025

Summary

06/03/2024
Yes i
High
Not published

CVE-2022-35982: Segfault in SparseBincount 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-35982 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 Penetration testing for web, API and mobile 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 platform for machine learning. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow is widely used in various industries and has a large community of developers and contributors. However, a vulnerability has been discovered in TensorFlow that can lead to a denial of service attack.

Vulnerability Detail

The vulnerability, identified as CVE-2022-35982, affects the SparseBincount function in TensorFlow. When provided with invalid inputs for indices, values, and dense_shape, the function crashes, resulting in a segfault. An attacker can exploit this vulnerability to trigger a denial of service attack, causing the affected TensorFlow application to crash or become unresponsive. The impact of this vulnerability can be severe, as it can disrupt critical machine learning processes and potentially lead to data loss or system downtime.

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 →

Workaround

There are no known workarounds for this vulnerability. It is essential to apply the provided fix by updating TensorFlow to the patched versions.

Conclusion

The vulnerability in TensorFlow can lead to a denial of service attack, potentially causing disruption to machine learning processes and system downtime. It is crucial to update TensorFlow to the patched versions to mitigate the risk. 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 platform for machine learning, widely used for building and deploying machine learning models.

The vulnerability can be exploited to trigger a denial of service attack, causing the affected TensorFlow application to crash or become unresponsive.

To fix this vulnerability, update TensorFlow to version 2.10.0 or later. Alternatively, update to the patched versions 2.9.1, 2.8.1, or 2.7.2.

No, there are no known workarounds for this vulnerability. It is crucial to update TensorFlow to the patched versions.

You can find more information about this vulnerability in the GitHub commit 40adbe4dd15b582b0210dfbf40c243a62f5119fa.

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