| 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-2024-50171: net: systemport: fix potential memory leak in bcm_sysport_xmit() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| net: systemport: fix potential memory leak in bcm_sysport_xmit() |
| |
| The bcm_sysport_xmit() returns NETDEV_TX_OK without freeing skb |
| in case of dma_map_single() fails, add dev_kfree_skb() to fix it. |
| |
| The Linux kernel CVE team has assigned CVE-2024-50171 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 4.19.323 with commit 8e81ce7d0166a2249deb6d5e42f28a8b8c9ea72f |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 5.4.285 with commit 31701ef0c4547973991ff63596c927f841dfd133 |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 5.10.229 with commit b6321146773dcbbc372a54dbada67e0b50e0a25c |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 5.15.170 with commit 5febfc545389805ce83d37f9f4317055b26dd7d7 |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 6.1.115 with commit 533d2f30aef272dade17870a509521c3afc38a03 |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 6.6.59 with commit 4b70478b984af3c9d0279c121df5ff94e2533dbd |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 6.11.6 with commit 7d5030a819c3589cf9948b1eee397b626ec590f5 |
| Issue introduced in 3.16 with commit 80105befdb4b8cea924711b40b2462b87df65b62 and fixed in 6.12 with commit c401ed1c709948e57945485088413e1bb5e94bd1 |
| |
| 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-2024-50171 |
| 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/broadcom/bcmsysport.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/8e81ce7d0166a2249deb6d5e42f28a8b8c9ea72f |
| https://git.kernel.org/stable/c/31701ef0c4547973991ff63596c927f841dfd133 |
| https://git.kernel.org/stable/c/b6321146773dcbbc372a54dbada67e0b50e0a25c |
| https://git.kernel.org/stable/c/5febfc545389805ce83d37f9f4317055b26dd7d7 |
| https://git.kernel.org/stable/c/533d2f30aef272dade17870a509521c3afc38a03 |
| https://git.kernel.org/stable/c/4b70478b984af3c9d0279c121df5ff94e2533dbd |
| https://git.kernel.org/stable/c/7d5030a819c3589cf9948b1eee397b626ec590f5 |
| https://git.kernel.org/stable/c/c401ed1c709948e57945485088413e1bb5e94bd1 |