PYSEC-2026-986: Type confusion leading to `CHECK`-failure based denial of service in TensorFlow
TensorFlow is an open source platform for machine learning. Prior to versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4, the macros that TensorFlow uses for writing assertions (e.g., CHECKLT, CHECKGT, etc.) have an incorrect logic when comparing sizet and int values. Due to type conversion rules, several of the macros would trigger incorrectly. Versions 2.9.0, 2.8.1, 2.7.2, and 2.6.4 contain a patch for this issue.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.9.0 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.8.1 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.7.2 - Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.6.4
Event History
Frequently Asked Questions
What level of access does an attacker need?
The vulnerability is rated with a local attack vector and low privileges required. No user interaction is required.
What is the expected security impact?
The issue can cause a denial of service through an incorrectly triggered CHECK failure. The supplied severity vector indicates no confidentiality or integrity impact.
Which TensorFlow releases contain the fix?
The fix is included in TensorFlow 2.9.0, 2.8.1, 2.7.2, and 2.6.4. Deploy the applicable fixed release for the TensorFlow version line in use.