usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
77ce180d68beffd1af620d0121590e16683fc6b8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
The BOS descriptor defines a root descriptor and is the base descriptor for accessing a family of related descriptors.
Function 'usb_get_bos_descriptor()' encounters an iteration issue when skipping the 'USB_DT_DEVICE_CAPABILITY' descriptor type. This results in the same descriptor being read repeatedly.
To address this issue, a 'goto' statement is introduced to ensure that the pointer and the amount read is updated correctly. This ensures that the function iterates to the next descriptor instead of reading the same descriptor repeatedly.
From the CVE record · Linux
The Linux kernel’s usb_get_bos_descriptor() can repeatedly read the same BOS descriptor when skipping a USB_DT_DEVICE_CAPABILITY descriptor, rather than advancing to the next one. The input does not specify how an attacker could trigger this issue or whether network access, authentication, or user interaction is required.
Anyone running the Linux kernel should check their version against the vendor advisory; affected versions are not specified in the input.