Browse / AI Framework and Platform Flaws / Denial of service
Denial of service
377 records in AI Framework and Platform Flaws.
- Null pointer dereference in `MatrixDiagPartOp` A missing check on the padding_value tensor leads to reading the first element of an empty buffer, causing a null dereference.
- Crash caused by integer conversion to unsigned A negative stream count passed to the quantile resource is converted to an unsigned value, causing an enormous reservation and a crash.
- Bad alloc in `StringNGrams` caused by integer conversion Negative ngram widths passed to StringNGrams convert to huge unsigned sizes, causing an oversized memory allocation that fails.
- Floating point exception in `SparseDenseCwiseDiv` The sparse-dense division kernel does not handle a zero divisor, so a floating point exception crashes the process.
- Null pointer dereference in `RaggedTensorToTensor` Passing an empty row partition types list to RaggedTensorToTensor makes the kernel dereference a null pointer, crashing the process.
- Infinite loop in TFLite A crafted model with ellipsis strided-slice parameters makes the loop counter fail to advance, so the TFLite kernel loops forever.
- FPE in TFLite pooling operations TFLite pooling kernels divide by a dimension without a zero check, so crafted inputs trigger a floating point exception that crashes the process.
- Missing validation in shape inference for `Dequantize` Unvalidated axis values in Dequantize shape inference select an invalid rank, causing a segfault when arguments are malformed.
- Division by 0 in `ResourceGather` A zero batch size in ResourceGather causes a division by zero that crashes the process.
- FPE in TFLite division operations TFLite division does not check for zero divisors, so a zero-valued divisor tensor crashes the process.
- Crash in NMS ops caused by integer conversion to unsigned A negative output size is implicitly converted to an unsigned value during vector resize, causing the NMS kernel to crash.
- Incorrect validation of `SaveV2` inputs SaveV2 sets an error status on invalid inputs but keeps executing, so crafted inputs cause a null pointer dereference.
- Division by zero in optimized pooling implementations in TFLite Optimized TFLite pooling kernels divide by stride values from the model without checking for zero, so a crafted model triggers a division-by-zero crash.
- CHECK-fail in AddManySparseToTensorsMap A crafted sparse shape passed to a TensorFlow op triggers a CHECK failure that aborts the process.
- CHECK-fail in `tf.raw_ops.IRFFT` A crafted empty-length input to the inverse real FFT hits an assertion in the Eigen code, crashing the process.
- CHECK-fail in DrawBoundingBoxes An empty image passed to DrawBoundingBoxes hits a CHECK assertion that aborts the process instead of returning an error.
- Division by zero in TFLite's convolution code Several TFLite convolution computations divide by a user-controlled dimension value that is never checked for zero, crashing the process.
- CHECK-fail in tf.raw_ops.EncodePng Passing an empty pixel tensor to the PNG encoder op passes a null buffer into a CHECK, aborting the process.
- Division by zero in TFLite's implementation of `GatherNd` A crafted TFLite model supplies an empty params tensor, so a zero dimension is used as a divisor in the GatherNd kernel.
- Type confusion during tensor casts lead to dereferencing null pointers Passing non-numeric tensor dtypes to numeric TensorFlow operations leads to null pointer dereferences and process crashes.
- Null dereference in Grappler's `TrySimplify` The arithmetic optimizer dereferences a null pointer when simplifying a graph node that has no inputs, crashing the process.
- Division by 0 in `Conv2D` A zero-sized Conv2D input makes the kernel divide by a caller-controlled filter dimension, crashing the operation with a division by zero.
- Reference binding to nullptr in `SdcaOptimizer` Calling the raw SdcaOptimizer op with malformed sparse inputs binds a reference to null, causing undefined behaviour and a crash.
- Session operations in eager mode lead to null pointer dereferences Calling session-related raw ops in eager mode, where no session state exists, makes the kernel dereference a null pointer.
- Division by 0 in `QuantizedMul` An empty tensor passed to a quantised multiply causes a modulo by zero, because the divisor comes from the caller's input.
- CHECK-fail in `QuantizeAndDequantizeV4Grad` A gradient op does not validate input tensor ranks, so a crafted call hits a CHECK failure that crashes the process.
- CHECK-fail in SparseConcat A crafted shape tensor makes the output shape constructor fail a CHECK assertion in SparseConcat, aborting the process.
- Null pointer dereference in `EditDistance` A crafted empty sparse input makes EditDistance allocate an empty output and then write to its buffer, dereferencing a null pointer and crashing the process.
- CHECK-fail in SparseCross due to type confusion Mismatched sparse index, value and shape combinations trip an internal consistency check that aborts the process, crashing the TensorFlow runtime.
- Division by zero in `Conv3D` A zero-sized filter dimension makes a modulo operation divide by zero, and mismatched tensor shapes trigger an Eigen assertion, both crashing the process.
- Undefined behavior in `MaxPool3DGradGrad` Empty tensors passed to MaxPool3DGradGrad are not validated, so the kernel dereferences null pointers and crashes.
- Null pointer dereference via invalid Ragged Tensors An invalid ragged tensor argument causes a null pointer dereference because the code reads splits without checking the tensor is non-empty.
- Incomplete validation in `SparseReshape` Missing validation of sparse tensor inputs lets a crafted tensor trigger a CHECK failure that crashes the process.
- Division by 0 in `MaxPoolGradWithArgmax` An empty batch dimension in MaxPoolGradWithArgmax is used as a divisor without a check, causing a division by zero crash.
- Division by 0 in `Conv3DBackprop*` Empty input tensors reach a shard-size calculation that divides by zero, crashing the 3D convolution backprop kernels.
- Division by zero in TFLite's implementation of `BatchToSpaceNd` A crafted model with a zero block shape value causes a divide by zero in the TFLite BatchToSpaceNd kernel, crashing the process.
- Division by 0 in `FractionalAvgPool` Crafted input shape and pooling ratio make a computed output size zero, causing a division by zero that crashes the process at runtime.
- CHECK-fail in `CTCGreedyDecoder` Crafted inputs with invalid sequence lengths trigger a CHECK assertion in the decoder, aborting the process instead of returning an error.
- Division by 0 in `Reverse` Reverse computes a cost by dividing by the first dimension size, so a zero-sized first dimension causes a division-by-zero crash.
- Segfault in tf.raw_ops.ImmutableConst Passing resource or variant dtypes to the immutable constant op makes it treat tensor contents as scalars, causing a segfault.
- CHECK-fail in `LoadAndRemapMatrix` A tensor of the wrong rank passed as the checkpoint path triggers a CHECK failure in LoadAndRemapMatrix that aborts the process.
- Reference binding to null pointer in `MatrixDiag*` ops Matrix diagonal ops dereference empty tensor inputs without checking them, causing a null pointer crash.
- Division by zero in `Conv2DBackpropFilter` Crafted empty tensor shapes make the Conv2DBackpropFilter work-unit size zero, triggering a division by zero exception.
- CHECK-failure in `UnsortedSegmentJoin` UnsortedSegmentJoin assumes num_segments is a single-element scalar, so an empty tensor triggers a CHECK failure that terminates the process.
- Null pointer dereference in TFLite's `Reshape` operator A reshape input with no data buffer, supplied as a 1-D shape tensor, slips past an earlier null check and is dereferenced.
- Division by 0 in `QuantizedBiasAdd` Empty quantized inputs make an Eigen kernel divide by a zero element count, causing undefined behaviour and a crash.
- Crash in `tf.strings.substr` due to `CHECK`-fail Invalid position arguments to tf.strings.substr trigger a CHECK failure that crashes the TensorFlow process.
- Division by 0 in `QuantizedBatchNormWithGlobalNormalization` Zero-sized quantized inputs make the batch normalization op divide by zero at runtime, crashing the process.
- CHECK-fail in `tf.raw_ops.RFFT` A zero FFT length makes the RFFT kernel operate on an empty matrix, triggering an assertion that terminates the process.
- Division by zero in TFLite's implementation of `SVDF` A crafted model file sets the SVDF rank parameter to zero, and the kernel divides by it, crashing the interpreter.