USB: c67x00: fix use-after-free in c67x00_add_iso_urb()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e9b29ffc519b9e63d4e1c0b1278bb951bb418a9d · < b4cb8081cf80f82e48fbe9c021a8f6d0fa2ed421| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
USB: c67x00: fix use-after-free in c67x00_add_iso_urb()
When TD creation fails for the last packet of an isochronous URB, c67x00_add_iso_urb() gives the URB back before updating the endpoint scheduling state.
c67x00_giveback_urb() frees the URB private data, and the completion callback may release the final URB reference. The following accesses to urbp->ep_data, urb->interval, and urbp->cnt can therefore use freed memory.
Update next_frame and cnt before giving back the failed final packet, making the giveback the last operation that uses the URB and its private data.
From the CVE record · Linux
The Linux kernel’s c67x00 USB driver can access freed memory when TD creation fails for the last packet of an isochronous URB. The input does not establish whether an attacker can trigger this condition or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with the c67x00 USB driver should check their versions; affected versions are not specified.