CVE-2021-37690
CVE-2021-37690 · Use after free and segfault in shape inference functions in TensorFlow
Esta página presenta datos de fuentes públicas de vulnerabilidades. Consulta el aviso original antes de actualizar.
TensorFlow is an end-to-end open source platform for machine learning. In affected versions when running shape functions, some functions (such as `MutableHashTableShape`) produce extra output information in the form of a `ShapeAndType` struct. The shapes embedded in this struct are owned by an inference context that is cleaned up almost immediately; if the upstream code attempts to access this shape information, it can trigger a segfault. `ShapeRefiner` is mitigating this for normal output shapes by cloning them (and thus putting the newly created shape under ownership of an inference context that will not die), but we were not doing the same for shapes and types. This commit fixes that by doing similar logic on output shapes and types. We have patched the issue in GitHub commit ee119d4a498979525046fba1c3dd3f13a039fbb1. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, TensorFlow 2.4.3, and TensorFlow 2.3.4, as these are also affected and still in supported range.
CVSS 6.6 · Media · EPSS 0,2% · Corrección disponible
- Publicación
- Actualización
Pila tecnológica: python
Productos y versiones afectados
tensorflow
- Versiones
- >= 2.5.0, < 2.5.1: Afectada
- >= 2.4.0, < 2.4.3: Afectada
- < 2.3.4: Afectada
Sin corrección publicada
tensorflow PyPI
- Versiones
- 0.12.0
- 0.12.1
- 1.0.0
- 1.0.1
- 1.1.0
- 1.10.0
- 1.10.1
- 1.11.0
- 1.12.0
- 1.12.2
- 1.12.3
- 1.13.1
- 1.13.2
- 1.14.0
- 1.15.0
- 1.15.2
- 1.15.3
- 1.15.4
- 1.15.5
- 1.2.0
- 1.2.1
- 1.3.0
- 1.4.0
- 1.4.1
- 1.5.0
- 1.5.1
- 1.6.0
- 1.7.0
- 1.7.1
- 1.8.0
- 1.9.0
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.0.4
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.3.4
Actualiza a 2.3.4
tensorflow PyPI
- Versiones
- 2.4.0
- 2.4.1
- 2.4.2
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.4.0, < 2.4.3
Actualiza a 2.4.3
tensorflow PyPI
- Versiones
- 2.5.0
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.5.0, < 2.5.1
Actualiza a 2.5.1
tensorflow-cpu PyPI
- Versiones
- 1.15.0
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.3.4
Actualiza a 2.3.4
tensorflow-cpu PyPI
- Versiones
- 2.4.0
- 2.4.1
- 2.4.2
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.4.0, < 2.4.3
Actualiza a 2.4.3
tensorflow-cpu PyPI
- Versiones
- 2.5.0
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.5.0, < 2.5.1
Actualiza a 2.5.1
tensorflow-gpu PyPI
- Versiones
- 0.12.0
- 0.12.1
- 1.0.0
- 1.0.1
- 1.1.0
- 1.10.0
- 1.10.1
- 1.11.0
- 1.12.0
- 1.12.2
- 1.12.3
- 1.13.1
- 1.13.2
- 1.14.0
- 1.15.0
- 1.15.2
- 1.15.3
- 1.15.4
- 1.15.5
- 1.2.0
- 1.2.1
- 1.3.0
- 1.4.0
- 1.4.1
- 1.5.0
- 1.5.1
- 1.6.0
- 1.7.0
- 1.7.1
- 1.8.0
- 1.9.0
- 2.0.0
- 2.0.1
- 2.0.2
- 2.0.3
- 2.0.4
- 2.1.0
- 2.1.1
- 2.1.2
- 2.1.3
- 2.1.4
- 2.2.0
- 2.2.1
- 2.2.2
- 2.2.3
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- Intervalos de versiones afectados
- ECOSYSTEM: < 2.3.4
Actualiza a 2.3.4
tensorflow-gpu PyPI
- Versiones
- 2.4.0
- 2.4.1
- 2.4.2
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.4.0, < 2.4.3
Actualiza a 2.4.3
tensorflow-gpu PyPI
- Versiones
- 2.5.0
- Intervalos de versiones afectados
- ECOSYSTEM: ≥ 2.5.0, < 2.5.1
Actualiza a 2.5.1
tensorflow PyPI
- Versiones
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- 2.4.0
- 2.4.1
- 2.4.2
- Intervalos de versiones afectados
- GIT: < ee119d4a498979525046fba1c3dd3f13a039fbb1
- ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3
Actualiza a 2.3.4; Actualiza a 2.4.3
tensorflow-cpu PyPI
- Versiones
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- 2.4.0
- 2.4.1
- 2.4.2
- Intervalos de versiones afectados
- GIT: < ee119d4a498979525046fba1c3dd3f13a039fbb1
- ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3
Actualiza a 2.3.4; Actualiza a 2.4.3
tensorflow-gpu PyPI
- Versiones
- 2.3.0
- 2.3.1
- 2.3.2
- 2.3.3
- 2.4.0
- 2.4.1
- 2.4.2
- Intervalos de versiones afectados
- GIT: < ee119d4a498979525046fba1c3dd3f13a039fbb1
- ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3
Actualiza a 2.3.4; Actualiza a 2.4.3