Advisories
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
Security vulnerabilities, privacy incidents, safety concerns, and policy updates affecting LLMs and AI agents.
1,675 items
TensorFlow contains a memory leak in the implementation of `ImmutableExecutorState::Initialize` when a graph node is invalid. The code sets `item->kernel` to `nullptr`, but because it is a plain `OpKernel*` pointer, the memory previously allocated to it is never freed.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are also affected and still in the supported range.
NVD/CVE DatabaseCVE-2022-23577 affects TensorFlow, an open source machine learning framework. The implementation of `GetInitOp` crashes when it dereferences a null pointer, a flaw classified as CWE-476. The fix ships in TensorFlow 2.8.0, and the same commit is cherry-picked to TensorFlow 2.7.1, 2.6.3 and 2.5.3, which the advisory describes as affected and still in supported range.
Fix: Fixed in TensorFlow 2.8.0. The fix is also cherry-picked to TensorFlow 2.7.1, 2.6.3 and 2.5.3.
CVE-2022-23576 affects TensorFlow's `OpLevelCostEstimator::CalculateOutputSize`, which is vulnerable to an integer overflow. An attacker who can create an operation involving tensors with a large enough number of elements can trigger it, either through many dimensions in `output_shape.dim()` or through a few dimensions that are large enough to overflow the multiplication.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherry-picked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are also affected and still in the supported range.
CVE-2022-23575 is an integer overflow in TensorFlow's `OpLevelCostEstimator::CalculateTensorSize`. An attacker who can create an operation involving a tensor with a large enough number of elements can trigger it. The flaw is classified as CWE-190 and was reported by GitHub, Inc.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are also affected and still in supported range.
CVE-2022-23574 affects TensorFlow's `SpecializeType`, where a typo causes `arg` to be initialized to the ith mutable argument while the loop index is j. This lets `arg` be assigned from outside the argument vector, enabling heap out-of-bounds read and write through a mutable proto value.
Fix: The fix will be included in TensorFlow 2.8.0. The same commit will be cherry-picked to TensorFlow 2.7.1 and TensorFlow 2.6.3, which are also affected and still in supported range.
CVE-2022-23573 affects TensorFlow, an open source machine learning framework. The implementation of `AssignOp` can copy uninitialized data into a new tensor, which later leads to undefined behavior. The check covers only the left-hand side of the assignment, not the right-hand side.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherry-picked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3.
NVD/CVE DatabaseCVE-2022-23572 affects TensorFlow, an open source machine learning framework. Under certain scenarios, TensorFlow fails to specialize a type during shape inference, so the DCHECK check is skipped in production builds and execution reaches the ValueOrDie line, causing an assertion failure and crash.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1 and TensorFlow 2.6.3, as these are also affected and still in supported range.
CVE-2022-23571 affects TensorFlow. When decoding a tensor from protobuf, a `CHECK` assertion can be invalidated by user-controlled arguments when the tensor has an invalid `dtype` and 0 elements, or an invalid shape. An attacker can use this to cause a denial of service in TensorFlow processes.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherry-picked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are affected and still in supported range.
TensorFlow may dereference a null pointer when decoding a tensor from protobuf if attributes of some mutable arguments to certain operations are missing from the proto. The check guarding this is a DCHECK, which is a no-op in production builds and an assertion failure in debug builds, so execution either reaches the null dereference or crashes.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1 and TensorFlow 2.6.3.
CVE-2022-23566 is a heap out-of-bounds write in TensorFlow's Grappler component. The set_output function writes to an array at a specified index, which gives a malicious user a write primitive. The source says TensorFlow 2.7.1, 2.6.3 and 2.5.3 are also affected and still in supported range.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherry-picked to TensorFlow 2.7.1, 2.6.3 and 2.5.3.
NVD/CVE DatabaseCVE-2022-23565 affects TensorFlow, an open source machine learning framework. An attacker who alters a `SavedModel` on disk so that `AttrDef`s of some operation are duplicated can trigger a denial of service via assertion failure, tracked as CWE-617 (Reachable Assertion).
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherry-picked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are also affected and still in supported range.
CVE-2022-23564 affects TensorFlow, an open source machine learning framework. When decoding a resource handle tensor from protobuf, a `CHECK` assertion can be invalidated by user controlled arguments, letting an attacker cause a denial of service in TensorFlow processes.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3.
NVD/CVE DatabaseTensorFlow uses `tempfile.mktemp` in multiple places to create temporary files, which is exploitable as a time-of-check to time-of-use (TOC/TOU) race: another process can create the file between the filename check in `mktemp` and the subsequent creation. In several instances TensorFlow was meant to create a temporary directory rather than a file, and this logic bug is hidden by the `mktemp` usage.
Fix: Patched in several commits by replacing `mktemp` with `mkstemp`/`mkdtemp` according to usage pattern. Users are advised to upgrade as soon as possible.
CVE-2022-23562 affects TensorFlow's implementation of `Range`, which suffers from integer overflows (CWE-190). These can trigger undefined behavior or, in some scenarios, extremely large allocations. The source states that the affected releases include TensorFlow 2.7.1, 2.6.3 and 2.5.3 as well as the version the fix is included in.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked onto TensorFlow 2.7.1, 2.6.3 and 2.5.3.
CVE-2022-23561 affects TensorFlow, an open source machine learning framework. A crafted TFLite model can trigger a write outside the bounds of an array in TFLite, letting an attacker override the linked list used by the memory allocator. Under certain conditions this can be leveraged as an arbitrary write primitive.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3.
CVE-2022-23560 affects TensorFlow, an open source machine learning framework. An attacker can craft a TFLite model that allows limited reads and writes outside of arrays, because validation is missing in the conversion from sparse tensors to dense tensors. The source lists CWE-125 (Out-of-bounds Read) and CWE-787 (Out-of-bounds Write), and NVD published it on 02/04/2022.
Fix: The fix is included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are also affected and still in supported range.
CVE-2022-23559 is a TensorFlow flaw in which a crafted TFLite model can cause an integer overflow in embedding lookup operations. Because both embedding_size and lookup_size are products of user-supplied values, a malicious user can trigger the overflow, which in certain scenarios can result in a heap out-of-bounds read/write. The weakness is classified as CWE-190 (Integer Overflow or Wraparound).
Fix: Users are advised to upgrade to a patched version.
CVE-2022-23558 affects TensorFlow's TFLite runtime. An attacker can craft a TFLite model so that an integer overflow occurs in `TfLiteIntArrayCreate`, because `TfLiteIntArrayGetSizeInBytes` returns an `int` instead of a `size_t`. The fix is included in TensorFlow 2.8.0, with cherry-picks to TensorFlow 2.7.1, 2.6.3 and 2.5.3, which the source says are also affected and still in supported range.
Fix: Fixed in TensorFlow 2.8.0. Cherry-picked fixes are also provided for TensorFlow 2.7.1, 2.6.3 and 2.5.3.
CVE-2022-23557 affects TensorFlow, an open source machine learning framework. An attacker can craft a TFLite model that triggers a division by zero in the `BiasAndClamp` implementation, because the code never checks that `bias_size` is non-zero.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherry-picked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3, which are also affected and still in supported range.
CVE-2022-21741 affects TensorFlow, an open source machine learning framework. An attacker can craft a TFLite model that triggers a division by zero in the implementation of depthwise convolutions, because the convolution parameters, which are user controlled, feed a division that determines padding size without a check that the divisor is strictly positive.
Fix: The fix will be included in TensorFlow 2.8.0. The commit will also be cherrypicked to TensorFlow 2.7.1, TensorFlow 2.6.3, and TensorFlow 2.5.3.