What’s Vulnerable › Vulnerabilities

CVE-2022-49817: net: mhi: Fix memory leak in mhi_net_dellink()

Description

In 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.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 5.15.80, 6.0.10. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-49817 or the next vulnerability affects your stack