p PatchFirst

CVE-2021-37692

CVE-2021-37692 · Segfault on strings tensors with mistmatched dimensions in TensorFlow

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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 · Mittel · EPSS 0,2% · Korrektur verfügbar

Veröffentlicht
Aktualisiert

Technologie-Stack: python

Betroffene Produkte und Versionen

  • tensorflow

    Softwareversionen
    • >= 2.5.0, < 2.5.1: Betroffen

    Keine Korrektur veröffentlicht

  • tensorflow PyPI

    Softwareversionen
    • 2.5.0
    Betroffene Versionsbereiche
    • ECOSYSTEM: ≥ 2.5.0rc0, < 2.5.1

    Auf 2.5.1 aktualisieren

  • tensorflow-cpu PyPI

    Softwareversionen
    • 2.5.0
    Betroffene Versionsbereiche
    • ECOSYSTEM: ≥ 2.5.0rc0, < 2.5.1

    Auf 2.5.1 aktualisieren

  • tensorflow-gpu PyPI

    Softwareversionen
    • 2.5.0
    Betroffene Versionsbereiche
    • ECOSYSTEM: ≥ 2.5.0rc0, < 2.5.1

    Auf 2.5.1 aktualisieren

  • tensorflow PyPI

    Softwareversionen
    • 2.3.0
    • 2.3.1
    • 2.3.2
    • 2.3.3
    • 2.4.0
    • 2.4.1
    • 2.4.2
    Betroffene Versionsbereiche
    • GIT: < 8721ba96e5760c229217b594f6d2ba332beedf22
    • ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3

    Auf 2.3.4 aktualisieren; Auf 2.4.3 aktualisieren

  • tensorflow-cpu PyPI

    Softwareversionen
    • 2.3.0
    • 2.3.1
    • 2.3.2
    • 2.3.3
    • 2.4.0
    • 2.4.1
    • 2.4.2
    Betroffene Versionsbereiche
    • GIT: < 8721ba96e5760c229217b594f6d2ba332beedf22
    • ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3

    Auf 2.3.4 aktualisieren; Auf 2.4.3 aktualisieren

  • tensorflow-gpu PyPI

    Softwareversionen
    • 2.3.0
    • 2.3.1
    • 2.3.2
    • 2.3.3
    • 2.4.0
    • 2.4.1
    • 2.4.2
    Betroffene Versionsbereiche
    • GIT: < 8721ba96e5760c229217b594f6d2ba332beedf22
    • ECOSYSTEM: ≥ 2.3.0, < 2.3.4 ∪ ≥ 2.4.0, < 2.4.3

    Auf 2.3.4 aktualisieren; Auf 2.4.3 aktualisieren

Originalquellen

Prüfen Sie Ihren Server →