usb: gadget: core: Check for unset descriptor
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 54f83b8c8ea9b22082a496deadf90447a326954e · < 1a9df57d57452b104c46c918569143cf21d7ebf1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: gadget: core: Check for unset descriptor
Make sure the descriptor has been set before looking at maxpacket. This fixes a null pointer panic in this case.
This may happen if the gadget doesn't properly set up the endpoint for the current speed, or the gadget descriptors are malformed and the descriptor for the speed/endpoint are not found.
No current gadget driver is known to have this problem, but this may cause a hard-to-find bug during development of new gadgets.
From the CVE record · Linux
The Linux kernel USB gadget core can panic if it reads an endpoint descriptor before that descriptor has been set. This may occur when a gadget fails to configure an endpoint for the current speed or its descriptors are malformed. The input does not identify an attacker path or specify network access, authentication, or user interaction requirements.
Engineers running the Linux kernel with USB gadget functionality should check their affected versions; no version range is specified.