xhci: sideband: fix ring sg table pages leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.397.1.47.2In the Linux kernel, the following vulnerability has been resolved:
xhci: sideband: fix ring sg table pages leak
xhci_ring_to_sgtable() allocates a temporary pages array and uses it to build the returned sg_table with sg_alloc_table_from_pages().
The error paths free the pages array, but the success path returns the sg_table without freeing it. This leaks the temporary array every time a sideband client gets an endpoint or event ring buffer.
Free the pages array after sg_alloc_table_from_pages() succeeds. The returned sg_table has its own scatterlist entries and does not depend on the temporary array after construction.
From the CVE record · Linux
The Linux kernel’s xHCI sideband code leaks a temporary pages array when a sideband client gets an endpoint or event ring buffer. Repeated requests can cause memory leaks; the input does not specify whether an attacker can trigger them remotely or locally, or what access is required.
Engineers running Linux kernels with xHCI sideband support should check their kernel versions against the vendor advisory; affected versions are not specified.