BIT-tensorflow-2022-23593: Segfault in `simplifyBroadcast` in Tensorflow
Tensorflow is an Open Source Machine Learning Framework. The simplifyBroadcast function in the MLIR-TFRT infrastructure in TensorFlow is vulnerable to a segfault (hence, denial of service), if called with scalar shapes. If all shapes are scalar, then maxRank is 0, so we build an empty SmallVector. The fix will be included in TensorFlow 2.8.0. This is the only affected version.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
TensorFlowto a version that resolves this vulnerability.Fixed in 2.8.0
Event History
Frequently Asked Questions
Which TensorFlow deployments are affected?
The issue affects TensorFlow 2.8.0 only. It is in the MLIR-TFRT infrastructure, specifically the simplifyBroadcast function.
What input condition triggers the denial of service?
The vulnerable function must be called with scalar shapes. When all supplied shapes are scalar, maxRank becomes 0 and the code builds an empty SmallVector, leading to a segmentation fault.
What is the impact of successful exploitation?
Successful triggering causes a segmentation fault and can deny service. The provided severity vector indicates no confidentiality or integrity impact.