tensorflow
Affected
- introduced
2.6.0, fixed2.6.1(ecosystem)
Fixed versions
2.6.1
Fix
- Fixed version
2.6.1pip install --upgrade tensorflow==2.6.1
Advisory
Also known as: BIT-tensorflow-2021-41207, CVE-2021-41207, PYSEC-2021-399, PYSEC-2021-616, PYSEC-2021-814
FPE in ParallelConcat
Impact
The implementation of `ParallelConcat` misses some input validation and can produce a division by 0:
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.
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 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.
Medium Basis: The source's own band: MODERATE
2.6.0, fixed 2.6.1 (ecosystem)2.6.1
2.6.1pip install --upgrade tensorflow==2.6.12.5.0, fixed 2.5.2 (ecosystem)2.5.2
2.5.2pip install --upgrade tensorflow==2.5.20, fixed 2.4.4 (ecosystem)2.4.4
2.4.4pip install --upgrade tensorflow==2.4.40, fixed 2.4.4 (ecosystem)2.4.4
2.4.4pip install --upgrade tensorflow-cpu==2.4.42.5.0, fixed 2.5.2 (ecosystem)2.5.2
2.5.2pip install --upgrade tensorflow-cpu==2.5.22.6.0, fixed 2.6.1 (ecosystem)2.6.1
2.6.1pip install --upgrade tensorflow-cpu==2.6.10, fixed 2.4.4 (ecosystem)2.4.4
2.4.4pip install --upgrade tensorflow-gpu==2.4.42.5.0, fixed 2.5.2 (ecosystem)2.5.2
2.5.2pip install --upgrade tensorflow-gpu==2.5.22.6.0, fixed 2.6.1 (ecosystem)2.6.1
2.6.1pip install --upgrade tensorflow-gpu==2.6.1Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0