p PatchFirst

CVE-2021-37692

CVE-2021-37692 · Segfault on strings tensors with mistmatched dimensions 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 under certain conditions, Go code can trigger a segfault in string deallocation. For string tensors, `C.TF_TString_Dealloc` is called during garbage collection within a finalizer function. However, tensor structure isn't checked until encoding to avoid a performance penalty. The current method for dealloc assumes that encoding succeeded, but segfaults when a string tensor is garbage collected whose encoding failed (e.g., due to mismatched dimensions). To fix this, the call to set the finalizer function is deferred until `NewTensor` returns and, if encoding failed for a string tensor, deallocs are determined based on bytes written. We have patched the issue in GitHub commit 8721ba96e5760c229217b594f6d2ba332beedf22. The fix will be included in TensorFlow 2.6.0. We will also cherrypick this commit on TensorFlow 2.5.1, which is the other affected version.

CVSS 5.5 · 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

    Sin corrección publicada

  • tensorflow PyPI

    Versiones
    • 2.5.0
    Intervalos de versiones afectados
    • ECOSYSTEM: ≥ 2.5.0rc0, < 2.5.1

    Actualiza a 2.5.1

  • tensorflow-cpu PyPI

    Versiones
    • 2.5.0
    Intervalos de versiones afectados
    • ECOSYSTEM: ≥ 2.5.0rc0, < 2.5.1

    Actualiza a 2.5.1

  • tensorflow-gpu PyPI

    Versiones
    • 2.5.0
    Intervalos de versiones afectados
    • ECOSYSTEM: ≥ 2.5.0rc0, < 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: < 8721ba96e5760c229217b594f6d2ba332beedf22
    • 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: < 8721ba96e5760c229217b594f6d2ba332beedf22
    • 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: < 8721ba96e5760c229217b594f6d2ba332beedf22
    • ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3

    Actualiza a 2.3.4; Actualiza a 2.4.3

Fuentes originales

Comprueba tu servidor →