Linux kernel memory leak in ALSA caiaq input setup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ALSA: caiaq: free the EP4 URB when input setup fails
The three controllers that use the EP4 input URB allocate it before checking the endpoint type and before registering the input device. On failure they jump to exit_free_idev, which clears cdev->input_dev but leaves cdev->ep4_in_urb set. The card teardown then calls snd_usb_caiaq_input_free(), which returns early because input_dev is NULL, so the URB is never freed.
Release the URB before dropping the input device on the error path.
From the CVE record · Linux
The ALSA caiaq driver fails to free an EP4 input URB when input setup fails, causing a memory leak during card teardown. The input does not specify how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running Linux kernels with the ALSA caiaq driver should check their kernel versions; affected versions are not specified.