| From bippy-1.1.0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@kernel.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: 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. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49817 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.14 with commit 13adac032982c61bb590669e8e87e51558917ca1 and fixed in 5.15.80 with commit 88da008e5e2f9753726ea5a51ef2eb144e9de927 |
| Issue introduced in 5.14 with commit 13adac032982c61bb590669e8e87e51558917ca1 and fixed in 6.0.10 with commit 25a270343b0f16e1f6e65f541a15975a35e238ff |
| Issue introduced in 5.14 with commit 13adac032982c61bb590669e8e87e51558917ca1 and fixed in 6.1 with commit f7c125bd79f50ec6094761090be81d02726ec6f4 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2022-49817 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/net/mhi_net.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| https://git.kernel.org/stable/c/88da008e5e2f9753726ea5a51ef2eb144e9de927 |
| https://git.kernel.org/stable/c/25a270343b0f16e1f6e65f541a15975a35e238ff |
| https://git.kernel.org/stable/c/f7c125bd79f50ec6094761090be81d02726ec6f4 |