| 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-48957: dpaa2-switch: Fix memory leak in dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| dpaa2-switch: Fix memory leak in dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove() |
| |
| The cmd_buff needs to be freed when error happened in |
| dpaa2_switch_acl_entry_add() and dpaa2_switch_acl_entry_remove(). |
| |
| The Linux kernel CVE team has assigned CVE-2022-48957 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.13 with commit 1110318d83e8011c4dfcb2f7dd343bcfb1623c5f and fixed in 5.15.83 with commit 54d830e24247fa8361b016dd2069362866f45cb6 |
| Issue introduced in 5.13 with commit 1110318d83e8011c4dfcb2f7dd343bcfb1623c5f and fixed in 6.0.13 with commit 785ee7a82297e1512d9061aae91699212ed65796 |
| Issue introduced in 5.13 with commit 1110318d83e8011c4dfcb2f7dd343bcfb1623c5f and fixed in 6.1 with commit 4fad22a1281c500f15b172c9d261eff347ca634b |
| |
| 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-48957 |
| 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/freescale/dpaa2/dpaa2-switch-flower.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/54d830e24247fa8361b016dd2069362866f45cb6 |
| https://git.kernel.org/stable/c/785ee7a82297e1512d9061aae91699212ed65796 |
| https://git.kernel.org/stable/c/4fad22a1281c500f15b172c9d261eff347ca634b |