net: mhi: Fix memory leak in mhi_net_dellink()
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 |
|
|
5.15.806.0.106.1In the Linux kernel, the following vulnerability has been resolved:
net: mhi: Fix memory leak in mhi_net_dellink()
MHI driver registers network device without setting the needs_free_netdev flag, and does NOT call free_netdev() when unregisters network device, which causes a memory leak.
This patch calls free_netdev() to fix it since netdev_priv is used after unregister.
From the CVE record · Linux
The Linux kernel MHI network driver leaks memory when it unregisters a network device because it does not free the device. The input does not specify an attacker action, authentication requirement, or user interaction needed to trigger the leak.
Engineers running Linux kernels that use the MHI network driver should check whether their kernel includes the fix; affected versions are not specified.