Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 318441CC16C for ; Thu, 7 Nov 2024 09:36:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972200; cv=none; b=CpnZtEakdgcRS6wDGLMzfGmrcDjJDZlp08OdgbPc1rW9t3fXaukkdR4vv6YWDBO+23dRn3mAcfEG/OMOKgw4AlYgRUvofmaa///b4+UJQ8sp+Nrhd8qUf3LLDldD22F/6J6etyB49aDwQ90SFUf5oVk0oB9EB1sZAjqpGTj35U8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972200; c=relaxed/simple; bh=S4GiryHShIRuhtn/XpSSUj/ZYWfHgf3Pk37ENXvGNwg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TvZPtYFXwOZEWaTErqhayeAlMF2mx5K91PN2ScL9StzCQidNCV+7XkaSp6cb4VAJ1jnMYxhazeIVCmCHr2Wwvj61ibBFEtN4/MVvbYEu0RGIgx+ikhgFB44b2bbwK0qIZ4YJNlA1UKRxkjZkbw3lYZKWpqGpHDM8xWW1gppl0p0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dQEHYowK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dQEHYowK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61CB6C4CECC; Thu, 7 Nov 2024 09:36:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972199; bh=S4GiryHShIRuhtn/XpSSUj/ZYWfHgf3Pk37ENXvGNwg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dQEHYowKdJLwAdJk7YWzNUJkzMdnZSrXqhU7+G1bnGDhooZ/x2K3hC9WxmF0muHdO AY+do0pPZPmPcvV9IW0l3VPmR9XT++R9IMkpPYdZTVgdZ/WuaqAQYgW40omD6/6oWb iNE8YFnMbuGvRbLFHTpThoCZYO5tkyFAKe7sJ9L8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50171: net: systemport: fix potential memory leak in bcm_sysport_xmit() Date: Thu, 7 Nov 2024 10:35:11 +0100 Message-ID: <2024110749-CVE-2024-50171-38cb@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2331; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=S4GiryHShIRuhtn/XpSSUj/ZYWfHgf3Pk37ENXvGNwg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6nTvlRPh/8VU/a00ve2MUdvm7fpaw0vkn+a6MOceFj bxtPpd2xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQU5RgW7Ph2QGbWI7/mDWt2 56Ut4y+7fLlxBsP8kL+/PmlP+Mz0P9nmYeTBK5v3KX6vBQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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 80105befdb4b and fixed in 5.15.170 with commit 5febfc545389 Issue introduced in 3.16 with commit 80105befdb4b and fixed in 6.1.115 with commit 533d2f30aef2 Issue introduced in 3.16 with commit 80105befdb4b and fixed in 6.6.59 with commit 4b70478b984a Issue introduced in 3.16 with commit 80105befdb4b and fixed in 6.11.6 with commit 7d5030a819c3 Issue introduced in 3.16 with commit 80105befdb4b and fixed in 6.12-rc4 with commit c401ed1c7099 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/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