net: wwan: mhi: fix memory leak in mhi_mbim_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.796.0.96.1In the Linux kernel, the following vulnerability has been resolved:
net: wwan: mhi: fix memory leak in mhi_mbim_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 sets needs_free_netdev to true when registers network device, which makes netdev subsystem call free_netdev() automatically after unregister_netdevice().
From the CVE record · Linux
The Linux kernel MHI WWAN driver can leak memory when it unregisters a network device because the device is not freed. The input does not specify how an attacker could trigger this behavior or whether access or user interaction is required.
Engineers running Linux kernels with the MHI WWAN driver should check their kernel version; affected versions are not specified.