can: etas_es58x: es58x_read_bulk_callback(): fix RX buffer leak on URB resubmit failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5eaad4f768266f1f17e01232ffe2ef009f8129b7 · < 19c6c8c6cd5dd14fab5fcd744584812a57cbb78d| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: etas_es58x: es58x_read_bulk_callback(): fix RX buffer leak on URB resubmit failure
es58x_read_bulk_callback() resubmits the RX URB after processing a received packet. If the resubmit succeeds, the URB remains anchored and will be handled by the normal RX path or by teardown.
However, if usb_submit_urb() fails, the callback unanchors the URB and then returns directly. This skips the existing free_urb path, so the coherent transfer buffer allocated with usb_alloc_coherent() is not released.
Reuse the existing free_urb path after a resubmit failure so that the RX coherent buffer is freed before leaving the callback.
From the CVE record · Linux
The Linux kernel's etas_es58x CAN driver leaks an RX buffer when a USB request resubmission fails. The input does not establish how an attacker could trigger the failure or whether authentication or user interaction is required.
Engineers running Linux kernels with the etas_es58x driver should check their versions; affected versions were not provided.