The vulnerability exists in the BatchProcessor's original architecture, which used a polling goroutine (poll) and a separate buffered exporter (bufferExporter). When an application generates a high volume of logs and the downstream exporter is slow or blocked (backpressure), the bufferExporter's channel fills up.
The BatchProcessor's flush method, called by poll, would check if the exporter is ready using (*bufferExporter).Ready(). Seeing the buffer is full, it would return without exporting. However, because the log queue (q) remained full, flush would immediately send a signal on pollTrigger. This caused the poll loop to iterate again instantly, creating a tight busy-spin loop where the processor continuously checks the full buffer without making progress or waiting, leading to 100% CPU utilization on one core and a denial of service.
The key vulnerable functions are (*BatchProcessor).poll and (*BatchProcessor).flush, which implement the spinning logic; (*bufferExporter).EnqueueExport and (*bufferExporter).Ready, which signal the backpressure condition without blocking; and (*queue).TryDequeue, whose conditional dequeueing mechanism allows the queue to remain full, perpetuating the loop. The fix was to completely refactor this architecture into a single worker goroutine that serializes export operations, thus blocking naturally on backpressure instead of spinning.