usb: cdns3: gadget: fix NULL pointer dereference in ep_queue
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.1.168, Kernel 5.15.203, Kernel 6.18.22 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: usb: cdns3: gadget: fix NULL pointer dereference in ep_queue When the gadget endpoint is disabled or not yet configured, the ep->desc pointer can be NULL. This leads to a NULL pointer dereference when __cdns3_gadget_ep_queue() is called, causing a kernel crash. Add a check to return -ESHUTDOWN if ep->desc is NULL, which is the standard return code for unconfigured endpoints. This prevents potential crashes when ep_queue is called on endpoints that are not ready.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.16 <6.1.168, >=5.4 <5.15.203, >=6.13 <6.18.22, >=6.19 <6.19.12, >=6.2 <6.6.134, >=6.7 <6.12.81, =7.0, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <390536cc6af4ca5566bc3bf1f8b704700380cd2c, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <3cf0580a09d417eab41ce914a11f9cde3a121871, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <3d1433fe34b224b90259e207e5389e95b504ef04, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <7f6f127b9bc34bed35f56faf7ecb1561d6b39000, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <d61446dfc9d387775bb1b95b081953201b9222af, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6, =5.4, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f | 6.1.168, 5.15.203, 6.18.22, 6.19.12, 6.6.134, 6.12.81, 390536cc6af4ca5566bc3bf1f8b704700380cd2c, 3cf0580a09d417eab41ce914a11f9cde3a121871, 3d1433fe34b224b90259e207e5389e95b504ef04, 7f6f127b9bc34bed35f56faf7ecb1561d6b39000, 9ab9b0e5fcdac325f950fc8b6caa08a9e22a0db9, d61446dfc9d387775bb1b95b081953201b9222af, fb2ad0c1334a3eccfe4ed203f9eef5a4879226f6, 14bf08ab2cdfcdfd3f13e799d06692a1b3e0745f |
| linux-kernel: Kernel | >=5.11.0 <5.15.203, >=5.16.0 <6.1.168, >=5.4.0 <5.10.260, >=6.13.0 <6.18.22, >=6.19.0 <6.19.12, >=6.2.0 <6.6.134, >=6.7.0 <6.12.81 | 5.15.203, 6.1.168, 5.10.260, 6.18.22, 6.19.12, 6.6.134, 6.12.81 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket