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 E0D371E1048 for ; Thu, 7 Nov 2024 09:36:36 +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=1730972197; cv=none; b=PfxqxbmUtqY9pBwD3JVmIYHHyxGjpcP8fCekliss9OwuYDJ9jMHwSZCQZO2UcxU7UZH/czuA0nzNEJb5YuMLyWDEiyTjpYknyiSLVzgQMbt4auiYPBRlyfUQ1weV4SXO4BXRNf6HOvYBwWKbEvZGEmglV2ZuwXEYyW4igjKhKbw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972197; c=relaxed/simple; bh=IPWtopQrZak8OzwEa5CEYj3bXi1C6+mlcEq2OO5YHCY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FVFrR0noqa8En+Jbaso2sSc6kcdZ4sZ5D4u42Vw+OE3DgEeZ3pb5p9vOalDUlmSTR4QHHBeUfLWey8x/KetU8Vc0GgK+BbMhHIblTcmSIVZbMzChLQnBvejJmGEpk7fc7NBMEo/Z89j3lx+ZqD+n8lB88e6i9fhmCom18/tDSdk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FxaEz2YO; 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="FxaEz2YO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F40A5C4CECC; Thu, 7 Nov 2024 09:36:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972196; bh=IPWtopQrZak8OzwEa5CEYj3bXi1C6+mlcEq2OO5YHCY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=FxaEz2YOG3mgIcupkVBfIH/bs0ypHEw2NS+hbMICfD4HXlfK99+8Qxf6yF203Gcei OHELLSmBpimW2+hMPEYpv8ufSVKC4RguvBTvIELpiQEVui/dyJCk+i4elSqWABpA/l ZzRHrOirarvsPSOOdkBKlkwbeAtlkfmXpbHVFa6U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50170: net: bcmasp: fix potential memory leak in bcmasp_xmit() Date: Thu, 7 Nov 2024 10:35:10 +0100 Message-ID: <2024110749-CVE-2024-50170-05db@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=1964; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IPWtopQrZak8OzwEa5CEYj3bXi1C6+mlcEq2OO5YHCY=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6nTvVhC9Mar/Rzzen9dWj1L/xpkd2ahXZRj7eHJB5c dX1jn/yHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRo7oMCya+zRT1/fD9u/HU 8rUPk4y33ld4tJJhvtNj843z3GbuSb/s6p9+VrkoZKr1KwA= 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: bcmasp: fix potential memory leak in bcmasp_xmit() The bcmasp_xmit() returns NETDEV_TX_OK without freeing skb in case of mapping fails, add dev_kfree_skb() to fix it. The Linux kernel CVE team has assigned CVE-2024-50170 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 490cb412007d and fixed in 6.6.59 with commit 7218de0778ae Issue introduced in 6.6 with commit 490cb412007d and fixed in 6.11.6 with commit f689f20d3e09 Issue introduced in 6.6 with commit 490cb412007d and fixed in 6.12-rc4 with commit fed07d3eb8a8 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-50170 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/asp2/bcmasp_intf.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/7218de0778aefbbbcfe474a55f88bbf6f244627d https://git.kernel.org/stable/c/f689f20d3e09f2d4d0a2c575a9859115a33e68bd https://git.kernel.org/stable/c/fed07d3eb8a8d9fcc0e455175a89bc6445d6faed