can: ucan: fix devres lifetime
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 9f2d3eae88d26c29d96e42983b755940d9169cd9 · < c524c124e3094d2de12235a513854c03d06a2b58| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
can: ucan: fix devres lifetime
USB drivers bind to USB interfaces and any device managed resources should have their lifetime tied to the interface rather than parent USB device. This avoids issues like memory leaks when drivers are unbound without their devices being physically disconnected (e.g. on probe deferral or configuration changes).
Fix the control message buffer lifetime so that it is released on driver unbind.
From the CVE record · Linux
The Linux kernel's ucan USB driver can leak a control message buffer when the driver is unbound without the USB device being physically disconnected. The input does not describe an attacker action, authentication requirement, or user interaction.
Engineers running Linux kernels with the ucan USB driver should check whether their kernel is affected; affected versions are not specified.