First published: Fri Sep 16 2022(Updated: )
TensorFlow is an open source platform for machine learning. In `core/kernels/list_kernels.cc's TensorListReserve`, `num_elements` is assumed to be a tensor of size 1. When a `num_elements` of more than 1 element is provided, then `tf.raw_ops.TensorListReserve` fails the `CHECK_EQ` in `CheckIsAlignedAndSingleElement`. We have patched the issue in GitHub commit b5f6fbfba76576202b72119897561e3bd4f179c7. The fix will be included in TensorFlow 2.10.0. We will also cherrypick this commit on TensorFlow 2.9.1, TensorFlow 2.8.1, and TensorFlow 2.7.2, as these are also affected and still in supported range. There are no known workarounds for this issue.
Credit: security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
TensorFlow Keras | >=2.7.0<2.7.2 | |
TensorFlow Keras | =2.8.0 | |
TensorFlow Keras | =2.9.0 | |
TensorFlow Keras | =2.10-rc0 | |
TensorFlow Keras | =2.10-rc1 | |
TensorFlow Keras | =2.10-rc2 | |
TensorFlow Keras | =2.10-rc3 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-35960 is classified as a moderate severity vulnerability in TensorFlow.
To fix CVE-2022-35960, upgrade TensorFlow to version 2.10.0 or later.
CVE-2022-35960 affects TensorFlow versions from 2.7.0 to 2.9.0, as well as certain release candidates of version 2.10.
The impact of CVE-2022-35960 may result in runtime errors when using the TensorListReserve operation with an incorrect number of elements.
There is no official workaround for CVE-2022-35960, so upgrading TensorFlow is highly recommended.