spi: ch341: fix memory leaks on probe failures
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:
spi: ch341: fix memory leaks on probe failures
Make sure to deregister the controller, disable pins, and kill and free the RX URB on probe failures to mirror disconnect and avoid memory leaks and use-after-free.
Also add an explicit URB kill on disconnect for symmetry (even if that is not strictly required as USB core would have stopped it in the current setup).
From the CVE record · Linux
The Linux kernel's spi ch341 driver can leak memory and leave resources in a use-after-free state when device probing fails. The input does not specify how an attacker could trigger the failure or whether access, authentication, or user interaction is required.
Engineers running Linux kernels with the spi ch341 driver should check their kernel versions; affected versions are not specified.