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 DF7BC2ECD39 for ; Tue, 30 Dec 2025 12:24:15 +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=1767097456; cv=none; b=Sz9fVVU2ptEcrGH3VuIA6ifdOFyscTTC0PYQ9I2mFZZWVeeWQzO0uRXBz1F2ifmCz6P1zwbizvk/lSAuF3PedQflFqbIld7WKgqGEfcecDNsgB9KNHQpcD25RdDmqqtSyCDsecEeybQB9E/M8NwJly0dCf4XYfZwnaXLOpvI9Rk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767097456; c=relaxed/simple; bh=xNVXTtiq+TIzUvCiKp+koKhbJM/TN2pNVIWoBnSzQ/g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cpXhKFDMzkvD05T+CBKRul4ubbN6MFpUa+4wvtCC8f3lVDOUiTeM2jXRFB0dQ89qjKeFCa+EWG1MP5WJAsUHbEX5w+4JnKPb1Rx9iZcxzr2Gc6VzJlSoF7IKLSpUvV3HlTDEa/qCr6CBRvKXz41iozC+1hefLTCcrWFuV7B12iQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IJhZ7JPs; 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="IJhZ7JPs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D6D1C4CEFB; Tue, 30 Dec 2025 12:24:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767097455; bh=xNVXTtiq+TIzUvCiKp+koKhbJM/TN2pNVIWoBnSzQ/g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=IJhZ7JPsQKBgatjaVRo9cUfyyl8hoDXSyioIkszD9BZsedD5X5IcEpfWqLuSdyjqC x9pcmquHlx286IQQpsCl15mSdoX1B//DNHnWRsV8v+N7nTvgN1JkG2NQ/M+a52RmnG A6IPkQ4DPUGG8erw+KpVfpQGCi/Mofx7wTj9rSIs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50877: net: broadcom: bcm4908_enet: update TX stats after actual transmission Date: Tue, 30 Dec 2025 13:23:26 +0100 Message-ID: <2025123023-CVE-2022-50877-6a05@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2303; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ubbJ43QemxheyrYXpInpaB2VjfzlO8aNRm7sI8m6EVs=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnBR6wvZTbvvPWp4Om0R9MKZtn+MyxvSL7kuutPw7fro UE2RxoSOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAigmwM87T/mH020D0pKuYc ueueUU+q+oXsLwwLphQu1pDZZRQg9GniRmX15oJO6fgNAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: net: broadcom: bcm4908_enet: update TX stats after actual transmission Queueing packets doesn't guarantee their transmission. Update TX stats after hardware confirms consuming submitted data. This also fixes a possible race and NULL dereference. bcm4908_enet_start_xmit() could try to access skb after freeing it in the bcm4908_enet_poll_tx(). The Linux kernel CVE team has assigned CVE-2022-50877 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 4feffeadbcb2e5b11cbbf191a33c245b74a5837b and fixed in 5.15.77 with commit c9589e18a60c55c76772a38117ef9a16b942e56b Issue introduced in 5.12 with commit 4feffeadbcb2e5b11cbbf191a33c245b74a5837b and fixed in 6.0.7 with commit 2adedc80faec243ede55355e57142110d6f46e08 Issue introduced in 5.12 with commit 4feffeadbcb2e5b11cbbf191a33c245b74a5837b and fixed in 6.1 with commit ef3556ee16c68735ec69bd08df41d1cd83b14ad3 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-50877 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/bcm4908_enet.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/c9589e18a60c55c76772a38117ef9a16b942e56b https://git.kernel.org/stable/c/2adedc80faec243ede55355e57142110d6f46e08 https://git.kernel.org/stable/c/ef3556ee16c68735ec69bd08df41d1cd83b14ad3