
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-52886 is a vulnerability in the Linux kernel's USB core subsystem that involves a race condition between read_descriptors() and hub_port_init() functions. The vulnerability was discovered when Syzbot reported an out-of-bounds read in sysfs.c:read_descriptors(). The issue emerged after the removal of device locking in a previous commit (45bf39f8df7f), which exposed a potential race condition where device descriptors could be modified while being read (Kernel Git).
The vulnerability stems from a race condition where read_descriptors() uses a field in udev->descriptor while hub_port_init() simultaneously attempts to overwrite it. This race condition was previously prevented by device locking, but became exposed after commit 45bf39f8df7f removed the locking mechanism from read_descriptors(). The issue manifests as a slab-out-of-bounds read in the kernel's USB core, specifically in drivers/usb/core/sysfs.c:883 (Kernel Git).
The vulnerability can lead to an out-of-bounds read in the kernel's USB subsystem, potentially causing memory corruption or system instability. The issue affects the kernel's ability to safely handle USB device descriptors, which could impact USB device functionality and system security (Kernel Git).
The vulnerability was discovered and reported by Syzbot, with a proof-of-concept that demonstrates the out-of-bounds read condition. The issue occurs during normal USB device operations and can be triggered when USB devices are connected or reset (Kernel Git).
The issue has been fixed by modifying hub_port_init() to take an additional argument that specifies a buffer for storing the device descriptor. This prevents the function from changing udev->descriptor once the device has been initialized and registered. The fix ensures that device descriptors remain immutable after initialization, which is an expected behavior by drivers (Kernel Git).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."