| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2022-49182: net: hns3: add vlan list lock to protect vlan list |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| net: hns3: add vlan list lock to protect vlan list |
| |
| When adding port base VLAN, vf VLAN need to remove from HW and modify |
| the vlan state in vf VLAN list as false. If the periodicity task is |
| freeing the same node, it may cause "use after free" error. |
| This patch adds a vlan list lock to protect the vlan list. |
| |
| The Linux kernel CVE team has assigned CVE-2022-49182 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.15.33 with commit 30f0ff7176efe8ac6c55f85bce26ed58bb608758 |
| Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.16.19 with commit 09e383ca97e798f9954189b741af54b5c51e7a97 |
| Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.17.2 with commit f58af41deeab0f45c9c80adf5f2de489ebbac3dd |
| Issue introduced in 5.1 with commit c6075b193462d9a3930fb41f587f94720658752a and fixed in 5.18 with commit 1932a624ab88ff407d1a1d567fe581faa15dc725 |
| |
| 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-49182 |
| 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/ethernet/hisilicon/hns3/hns3pf/hclge_main.c |
| drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h |
| |
| |
| 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/30f0ff7176efe8ac6c55f85bce26ed58bb608758 |
| https://git.kernel.org/stable/c/09e383ca97e798f9954189b741af54b5c51e7a97 |
| https://git.kernel.org/stable/c/f58af41deeab0f45c9c80adf5f2de489ebbac3dd |
| https://git.kernel.org/stable/c/1932a624ab88ff407d1a1d567fe581faa15dc725 |