First published: Fri Nov 05 2021(Updated: )
### Impact The [implementation of `ParallelConcat`](https://github.com/tensorflow/tensorflow/blob/8d72537c6abf5a44103b57b9c2e22c14f5f49698/tensorflow/core/kernels/inplace_ops.cc#L72-L97) misses some input validation and can produce a division by 0: ```python import tensorflow as tf @tf.function def test(): y = tf.raw_ops.ParallelConcat(values=[['tf']],shape=0) return y test() ``` ### Patches We have patched the issue in GitHub commit [f2c3931113eaafe9ef558faaddd48e00a6606235](https://github.com/tensorflow/tensorflow/commit/f2c3931113eaafe9ef558faaddd48e00a6606235). The fix will be included in TensorFlow 2.7.0. We will also cherrypick this commit on TensorFlow 2.6.1, TensorFlow 2.5.2, and TensorFlow 2.4.4, as these are also affected and still in supported range. ### For more information Please consult [our security guide](https://github.com/tensorflow/tensorflow/blob/master/SECURITY.md) for more information regarding the security model and how to contact us with issues and questions. ### Attribution This vulnerability has been reported by members of the Aivul Team from Qihoo 360.
Credit: security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
pip/tensorflow-gpu | >=2.6.0<2.6.1 | 2.6.1 |
pip/tensorflow-gpu | >=2.5.0<2.5.2 | 2.5.2 |
pip/tensorflow-gpu | >=0<2.4.4 | 2.4.4 |
pip/tensorflow-cpu | >=2.6.0<2.6.1 | 2.6.1 |
pip/tensorflow-cpu | >=2.5.0<2.5.2 | 2.5.2 |
pip/tensorflow-cpu | >=0<2.4.4 | 2.4.4 |
pip/tensorflow | <2.4.4 | 2.4.4 |
pip/tensorflow | >=2.5.0<2.5.2 | 2.5.2 |
pip/tensorflow | >=2.6.0<2.6.1 | 2.6.1 |
TensorFlow Keras | >=2.4.0<2.4.4 | |
TensorFlow Keras | >=2.6.0<2.6.1 | |
TensorFlow Keras | =2.7.0-rc0 | |
TensorFlow Keras | =2.7.0-rc1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2021-41207 is considered a moderate severity vulnerability due to its potential for division by zero error.
To fix CVE-2021-41207, update TensorFlow to version 2.4.4, 2.5.2, or 2.6.1 or higher.
CVE-2021-41207 affects TensorFlow versions from 2.4.0 to 2.4.4, 2.6.0 to 2.6.1, and specific release candidates of 2.7.0.
CVE-2021-41207 can cause a division by zero error due to insufficient input validation in the ParallelConcat implementation.
No, CVE-2021-41207 is not classified as a critical vulnerability, but it requires attention to prevent unexpected behavior.