CVE-2023-52781 usb: config: fix iteration issue in 'usb_get_bos_descriptor()'
A logic error in the Linux kernel USB subsystem causes an infinite loop when processing BOS descriptors, leading to a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-52781?
CVE-2023-52781 is a medium-severity denial of service vulnerability in Linux kernel, published on 21 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-670
Which versions are affected by CVE-2023-52781?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-52781?
Apply the vendor's patch.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2023-52781 being exploited?
There is no known exploitation of CVE-2023-52781 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-52781, DEBIAN-CVE-2023-52781, GHSA-3pwm-r3r4-xpvf, UBUNTU-CVE-2023-52781.