CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's handling of USB stream context arrays in the cdnsp driver, specifically within the cdnsp_alloc_stream_info() function. If an error occurs during stream ring allocation or mapping updates, the allocated stream context array is not properly freed, potentially leading to a memory leak. Linux system administrators and developers utilizing the affected kernel version should prioritize applying the fix to mitigate resource exhaustion risks.
Original NVD Description
In the Linux kernel, the following vulnerability has been resolved: usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info() cdnsp_alloc_stream_info() allocates stream_info->stream_ctx_array with cdnsp_alloc_stream_ctx(). If a later stream ring allocation or stream mapping update fails, the error path frees the allocated stream rings and stream_rings array, but leaves stream_ctx_array allocated. Free the stream context array before falling through to the stream_rings cleanup path.