usb: udc: remove warning when queue disabled ep
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8a0859b65b06ea07461271ce4f1fe25b48d1ec55 · < 99731076722eb7ed26b0c87c879da7bb71d24290| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: udc: remove warning when queue disabled ep
It is possible trigger below warning message from mass storage function,
WARNING: CPU: 6 PID: 3839 at drivers/usb/gadget/udc/core.c:294 usb_ep_queue+0x7c/0x104 pc : usb_ep_queue+0x7c/0x104 lr : fsg_main_thread+0x494/0x1b3c
Root cause is mass storage function try to queue request from main thread, but other thread may already disable ep when function disable.
As there is no function failure in the driver, in order to avoid effort to fix warning, change WARN_ON_ONCE() in usb_ep_queue() to pr_debug().
From the CVE record · Linux
The Linux kernel can emit a warning when the mass storage function queues a request after another thread has disabled the USB endpoint. No driver failure is reported, and the input does not establish an attacker-controlled exploit or specify access or user-interaction requirements.
Engineers running Linux kernels with the USB gadget mass storage function should check their kernel version; affected versions are not specified.