CVE-2022-23593
CVE-2022-23593 · Segfault in `simplifyBroadcast` in Tensorflow
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 5.9 · Medium · EPSS 0.9% · Fix available
- Published
- Updated
Stack: python
Affected products and versions
tensorflow
- Versions
- >= 2.7.0, < 2.8.0: Affected
No fix published
tensorflow PyPI
- Versions
- 2.8.0-rc0
- 2.8.0rc0
- 2.8.0rc1
- Affected ranges
- ECOSYSTEM: ≥ 2.8.0-rc0, < 2.8.0
Update to 2.8.0
tensorflow-cpu PyPI
- Versions
- 2.8.0-rc0
- Affected ranges
- ECOSYSTEM: ≥ 2.8.0-rc0, < 2.8.0
Update to 2.8.0
tensorflow-gpu PyPI
- Versions
- 2.8.0-rc0
- 2.8.0rc0
- 2.8.0rc1
- Affected ranges
- ECOSYSTEM: ≥ 2.8.0-rc0, < 2.8.0
Update to 2.8.0
tensorflow-cpu PyPI
- Versions
- 2.7.0
- 2.7.1
- 2.8.0rc0
- 2.8.0rc1
- 2.7.2
- 2.7.3
- 2.7.4
- Affected ranges
- GIT: < 35f0fabb4c178253a964d7aabdbb15c6a398b69a
- ECOSYSTEM: ≥ 2.7.0, < 2.8.0
Update to 2.8.0
tensorflow-gpu PyPI
- Versions
- 2.7.0
- 2.7.1
- 2.8.0rc0
- 2.8.0rc1
- 2.7.2
- 2.7.3
- 2.7.4
- Affected ranges
- GIT: < 35f0fabb4c178253a964d7aabdbb15c6a398b69a
- ECOSYSTEM: ≥ 2.7.0, < 2.8.0
Update to 2.8.0
Original sources
- https://github.com/tensorflow/tensorflow/security/advisories/GHSA-gwcx-jrx4-92w2
- https://github.com/tensorflow/tensorflow/commit/35f0fabb4c178253a964d7aabdbb15c6a398b69a
- https://github.com/tensorflow/tensorflow/blob/274df9b02330b790aa8de1cee164b70f72b9b244/tensorflow/compiler/mlir/tfrt/jit/transforms/tf_cpurt_symbolic_shape_optimization.cc#L149-L205
- https://nvd.nist.gov/vuln/detail/CVE-2022-23593