usb: cdnsp: fix stream context array leak in cdnsp_alloc_stream_info()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3d82904559f4f5a2622db1b21de3edf2eded7664 · < 963075c4da0cd43b3d17b107c355e1eb0ee64a58| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's USB cdnsp driver can leak a stream context array if a later stream ring allocation or stream mapping update fails. The input does not specify how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Teams running Linux kernels with the USB cdnsp driver should check their versions; affected versions are not specified.