sound: ua101: fix division by zero at probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 63978ab3e3e963db28093b53bb4598f2702e1ad7 · < 0ff2b713f406e9ecadb406014d74e7a020ac12b1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
sound: ua101: fix division by zero at probe
Add a missing sanity check for bNrChannels in detect_usb_format() to prevent a division by zero in playback_urb_complete() and capture_urb_complete().
USB core does not validate class-specific descriptor fields such as bNrChannels, so drivers must verify them before use. If a device provides bNrChannels = 0, frame_bytes becomes zero and is later used as a divisor in the URB completion handlers, leading to a kernel crash.
From the CVE record · Linux
The Linux kernel's ua101 driver does not check a USB audio descriptor's channel count during device detection. A USB device reporting zero channels can trigger division by zero in playback or capture completion handlers, crashing the kernel when the device is connected.
Engineers running Linux kernels with the ua101 USB audio driver should check whether their kernel is affected; affected versions were not provided.