CVE-2022-35981: TensorFlow - Denial of Service Vulnerability
Summary
CVE-2022-35981: CHECK fail in FractionalMaxPoolGrad 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
- tensorflow · PyPI
- tensorflow-cpu · PyPI
- tensorflow-gpu · PyPI
- tensorflow · PyPI
The same CVE-2022-35981 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.
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.
No signup required · Results in about 60 seconds
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 domains, including research, industry, and academia. 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-35981, exists in the FractionalMaxPoolGrad component of TensorFlow. This component fails to properly validate its inputs, relying on CHECK failures instead of returning errors. As a result, if incorrect input sizes are provided, an attacker can trigger a denial of service attack. This vulnerability can have serious consequences, potentially leading to service disruption and resource exhaustion.
How To Fix
Fixed versions by release line
The minimum fixed version depends on the release line you run.
-
< 2.7.22.7.2 -
>= 2.8.0, < 2.8.12.8.1 -
>= 2.9.0, < 2.9.12.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 recommended to apply the provided fix by updating TensorFlow to the patched versions.
Conclusion
In conclusion, TensorFlow is affected by a denial of service vulnerability in the FractionalMaxPoolGrad component. This vulnerability can be exploited to disrupt services and exhaust system resources. Users are advised to update their TensorFlow installations to the patched versions to mitigate the risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for tensorflow →
FAQ
TensorFlow is an open source platform for machine learning, widely used for developing and deploying machine learning models.
This vulnerability can be exploited to trigger a denial of service attack, potentially leading to service disruption and resource exhaustion.
To fix this vulnerability, update your TensorFlow installation to the patched versions: TensorFlow 2.10.0, TensorFlow 2.9.1, TensorFlow 2.8.1, or TensorFlow 2.7.2.
No, there are no known workarounds for this vulnerability. Updating to the patched versions is the recommended solution.
You can find more information about this vulnerability in the GitHub commit 8741e57d163a079db05a7107a7609af70931def4 and the associated CVE-2022-35981.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.