Vulnerability in TensorFlow: CHECK Failure in Depthwise Ops via Overflows
Summary
GHSA-mw6j-hh29-h379: CHECK failure in depthwise ops via overflows. Affects tensorflow across 3 version ranges.
< 2.6.4
>= 2.7.0, < 2.7.2
>= 2.8.0, < 2.8.1
Fixed in 2.6.4, 2.7.2 or 2.8.1, depending on the release line you run. How to fix ↓
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 machine learning framework developed by Google. It provides a comprehensive ecosystem of tools, libraries, and resources for building and deploying machine learning models. TensorFlow is widely used in various domains, including research, industry, and academia. However, a vulnerability has been discovered in the implementation of depthwise ops in TensorFlow, which can lead to a denial of service attack.
Vulnerability Detail
The vulnerability in TensorFlow is caused by a CHECK failure (assertion failure) in depthwise ops due to overflows. By overflowing the number of elements in a tensor, an attacker can trigger a denial of service attack. This vulnerability is another instance of TFSA-2021-198 (CVE-2021-41197). The impact of this vulnerability can be severe, as it can disrupt the availability of TensorFlow-based systems and potentially lead to further exploitation.
How To Fix
Latest published version: 2.21.0 as of 22 Oct 2026
pip install --upgrade "tensorflow==2.21.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.6.42.6.4pip install --upgrade "tensorflow==2.6.4" -
>= 2.7.0, < 2.7.22.7.2pip install --upgrade "tensorflow==2.7.2" -
>= 2.8.0, < 2.8.12.8.1pip install --upgrade "tensorflow==2.8.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 known workaround for this vulnerability. It is recommended to apply the patches provided by the TensorFlow team as soon as possible.
Conclusion
The vulnerability in TensorFlow's depthwise ops can lead to a denial of service attack. It is crucial for users to update their TensorFlow installation to the latest patched version 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 machine learning framework developed by Google. It provides tools and resources for building and deploying machine learning models.
The vulnerability can lead to a denial of service attack, potentially disrupting the availability of TensorFlow-based systems.
To fix the vulnerability, update your TensorFlow installation to the latest patched version.
There is no known workaround for this vulnerability. It is recommended to apply the patches provided by the TensorFlow team.
For more information, please refer to the TensorFlow security guide and the GitHub advisory.
References
Related vulnerabilities
Recent vulnerabilities recorded for tensorflow.