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 413BC1E1A2D for ; Thu, 7 Nov 2024 09:36:24 +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=1730972185; cv=none; b=B9LxWnfV2ZEXwyA+PFgfEx7UQ3DmT5s7vlQNVZECimnnY5Ov0mfwcwuEESJI8QYfB+LMeKK0BqLDaSGyFWG6zqqlqTw1kiQNJkfvKk6YWqXeszNc80mvx5mMD8wLaiF9rZW51iv3eVo65RjLako1XJDfiigfgzYMvKWjWv7jefk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730972185; c=relaxed/simple; bh=6HQakHu9zti7oAgUJWoGK2sO21GYSlIzUGicF3rLO6Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cwivJU2GwLTy9K6wNC8AYDAmFeNyS5IyD/hWChYx38JOF+ykhflFQzDTy1lUNr3FZ/6v8PHzkbpqTjcZ4SxLWfJGCMblmlpYCfjNtvn6I2nXAjaFwX3qhQwCBIVJrYCKuFVmy2kdSSDL3NNB6sigkLSPUg0XAlox5C9fFwSaLH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A5k2BEwc; 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="A5k2BEwc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26B19C4CECC; Thu, 7 Nov 2024 09:36:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1730972184; bh=6HQakHu9zti7oAgUJWoGK2sO21GYSlIzUGicF3rLO6Y=; h=From:To:Cc:Subject:Date:Reply-to:From; b=A5k2BEwcK1A1jxB0LOKfP2OL39qu2kiYc7TNYldd/5mGuYKEFmqXMt8RpAG6pRuqp DkwPY9jifvP6jvb4Cw1HjLE1vigmOSnzU8S3Sf8EB+GAmX4ZbH+6P1aSAcvGHj3u5X mBHwVEIhsxLvaUvsTuygpxD7v7p3vhfDhfj6A0kI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50167: be2net: fix potential memory leak in be_xmit() Date: Thu, 7 Nov 2024 10:35:07 +0100 Message-ID: <2024110748-CVE-2024-50167-c275@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=2305; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6HQakHu9zti7oAgUJWoGK2sO21GYSlIzUGicF3rLO6Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDOk6nTvm7k60KVyf3fXwwUF258vP8o9Eri/aWOAqp3xQ4 194pCV7RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE7DnDgj0btqV3cU3r0848 qrl3Rf70pD+uUxjmOxiXpc8xbvfcq/J6l779BqFeMckoAA== 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: be2net: fix potential memory leak in be_xmit() The be_xmit() returns NETDEV_TX_OK without freeing skb in case of be_xmit_enqueue() fails, add dev_kfree_skb_any() to fix it. The Linux kernel CVE team has assigned CVE-2024-50167 to this issue. Affected and fixed versions =========================== Issue introduced in 4.2 with commit 760c295e0e8d and fixed in 5.15.170 with commit 919ab6e23702 Issue introduced in 4.2 with commit 760c295e0e8d and fixed in 6.1.115 with commit 4c5f170ef4f8 Issue introduced in 4.2 with commit 760c295e0e8d and fixed in 6.6.59 with commit 641c1beed52b Issue introduced in 4.2 with commit 760c295e0e8d and fixed in 6.11.6 with commit e86a79b804e2 Issue introduced in 4.2 with commit 760c295e0e8d and fixed in 6.12-rc5 with commit e4dd8bfe0f6a 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-50167 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/emulex/benet/be_main.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/919ab6e2370289a2748780f44a43333cd3878aa7 https://git.kernel.org/stable/c/4c5f170ef4f85731a4d43ad9a6ac51106c0946be https://git.kernel.org/stable/c/641c1beed52bf3c6deb0193fe4d38ec9ff75d2ae https://git.kernel.org/stable/c/e86a79b804e26e3b7f1e415b22a085c0bb7ea3d3 https://git.kernel.org/stable/c/e4dd8bfe0f6a23acd305f9b892c00899089bd621