5.5medium
can: gs_usb: gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.15% (higher than 4% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error In commit 7352e1d5932a ("can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak"), the URB was re-anchored before usb_submit_urb() in gs_usb_receive_bulk_callback() to prevent a leak of this URB during cleanup. However, this patch did not take into account that usb_submit_urb() could fail. The URB remains anchored and usb_kill_anchored_urbs(&parent->rx_submitted) in gs_can_close() loops infinitely since the anchor list never becomes empty. To fix the bug, unanchor the URB when an usb_submit_urb() error occurs, also print an info message.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 9c151898cc259a7784be60ba38664f42ede39b31 before da01de754e455e2598a7f1ce4ff2078c4f0ecde1, from ec5ccc2af9e5b045671f3f604b57512feda8bcc5 before aa8a8866c533a150be4763bcb27993603bd5426c, from f905bcfa971edb89e398c98957838d8c6381c0c7 before ce4352057fc5a986c76ece90801b9755e7c6e56c, from 08624b7206ddb9148eeffc2384ebda2c47b6d1e9 before c610b550ccc0438d456dfe1df9f4f36254ccaae3, from 9f669a38ca70839229b7ba0f851820850a2fe1f7 before c3edc14da81a8d8398682f6e4ab819f09f37c0b7, from 7352e1d5932a0e777e39fa4b619801191f57e603 before 79a6d1bfe1148bc921b8d7f3371a7fbce44e30f7, from 6.12.67 before 6.12.68, from 6.18.7 before 6.18.8 | CVE List |
| linux linux_kernel | 6.12.67, 6.18.7, 6.19 | NVD |
Classification
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: can: gs_usb: gs_usb_receive_bulk_callback(): unanchor URL on usb_submit_urb() error In commit 7352e1d5932a ("can: gs_usb: gs_usb_receive_bulk_callback(): fix URB memory leak"), the URB was re-anchored before usb_submit_urb() in gs_usb_receive_bulk_callback() to prevent a leak of this URB during cleanup. However, this patch did not take into account that usb_submit_urb() could fail. The URB remains anchored and usb_kill_anchored_urbs(&parent->rx_submitted) in gs_can_close() loops infinitely since the anchor list never becomes empty. To fix the bug, unanchor the URB when an usb_submit_urb() error occurs, also print an info message.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: can: gs_usb: gs_usb_receive_bulk_callback(): desanclar URL en error de usb_submit_urb() En el commit 7352e1d5932a ("can: gs_usb: gs_usb_receive_bulk_callback(): corregir fuga de memoria de URB"), el URB fue re-anclado antes de usb_submit_urb() en gs_usb_receive_bulk_callback() para prevenir una fuga de este URB durante la limpieza. Sin embargo, este parche no tuvo en cuenta que usb_submit_urb() podría fallar. El URB permanece anclado y usb_kill_anchored_urbs(&parent->rx_submitted) en gs_can_close() entra en un bucle infinito ya que la lista de anclajes nunca queda vacía. Para corregir el error, desanclar el URB cuando ocurre un error de usb_submit_urb(), también imprimir un mensaje de información.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23082 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2026-23082 changed 2026-06-17 | Public domain |