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 E379C34D925 for ; Tue, 16 Dec 2025 15:07:52 +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=1765897673; cv=none; b=EiwjbPn4ViTf/f6Sure2R04OE3UzUoErvhVZEVY2KyvRkO1z6i9mte+SPLOh63MPP19KoYHmB50Cw7pVw6TL7PeH+1uq1M7L3P9UnrulOqDLChPHuTOnSyPlZGd0ecinS6K4Je3m/6Jobx4ZspjOtL80J3CGuwyGp3h9SAwF7Sk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765897673; c=relaxed/simple; bh=PO8Nd+XF6P3lLQfZEo+KrLmZ6YA0fEh4q1KimWrjytY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gVR7FdQJCIKFA7TN7aqxMFmptMuR+zpxygD3dGuDFNJCeRLVFfeQfD+Q+TrTLZ9D5jdQ3iCPapHQrAxOVNubVNE6axu0ZvhCbuZCiHSz5FMYySMgFUPWsFbeKQhkddTVK/aLN9Zu8VuxnJib567XE9ho7Pu7Y6RRMgrX6prPU3U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hskvRRSU; 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="hskvRRSU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68D02C4CEF1; Tue, 16 Dec 2025 15:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765897672; bh=PO8Nd+XF6P3lLQfZEo+KrLmZ6YA0fEh4q1KimWrjytY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hskvRRSU03VI6mSS7q0wtvYqFULswAEajaMIo8s39Nj6+leH1mbcuU4qjtg9+a5TE 7VuqhFQQ1Hg4EGu9fA3EdnBrpbXsKg/+65QTc8NENoiSwzGqNMWs/P63oJvTwM0pmV 4VnSpDhVK5YxS72YOYuowNBhqDqZxKgKU1T11dWE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68302: net: sxgbe: fix potential NULL dereference in sxgbe_rx() Date: Tue, 16 Dec 2025 16:06:56 +0100 Message-ID: <2025121643-CVE-2025-68302-913d@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=3275; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ec36B3+uKxzPvhegE0vQERqTSQWQM1PwtfN/MYUq42M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOpc2f7Y8tsqplbH+0k7OsleV+ZoiU5iahrAWtDz/va FH9O/lRRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkriHDfDf2NcctNNUE6rOq L0VkHgm4xhOhzTCTcfEdq7jWlTu2rq7IP2Z/rl2ibq8jAA== 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: sxgbe: fix potential NULL dereference in sxgbe_rx() Currently, when skb is null, the driver prints an error and then dereferences skb on the next line. To fix this, let's add a 'break' after the error message to switch to sxgbe_rx_refill(), which is similar to the approach taken by the other drivers in this particular case, e.g. calxeda with xgmac_rx(). Found during a code review. The Linux kernel CVE team has assigned CVE-2025-68302 to this issue. Affected and fixed versions =========================== Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 5.10.247 with commit ac171c3c755499c9f87fe30b920602255f8b5648 Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 5.15.197 with commit 18ef3ad1bb57dcf1a9ee61736039aedccf670b21 Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 6.1.159 with commit 46e5332126596a2ca791140feab18ce1fc1a3c86 Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 6.6.119 with commit 7fd789d6ea4915034eb6bcb72f6883c8151083e5 Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 6.12.61 with commit 45b5b4ddb8d6bea5fc1625ff6f163bbb125d49cc Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 6.17.11 with commit 88f46c0be77bfe45830ac33102c75be7c34ac3f3 Issue introduced in 3.15 with commit 1edb9ca69e8a7988900fc0283e10550b5592164d and fixed in 6.18 with commit f5bce28f6b9125502abec4a67d68eabcd24b3b17 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-2025-68302 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/samsung/sxgbe/sxgbe_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/ac171c3c755499c9f87fe30b920602255f8b5648 https://git.kernel.org/stable/c/18ef3ad1bb57dcf1a9ee61736039aedccf670b21 https://git.kernel.org/stable/c/46e5332126596a2ca791140feab18ce1fc1a3c86 https://git.kernel.org/stable/c/7fd789d6ea4915034eb6bcb72f6883c8151083e5 https://git.kernel.org/stable/c/45b5b4ddb8d6bea5fc1625ff6f163bbb125d49cc https://git.kernel.org/stable/c/88f46c0be77bfe45830ac33102c75be7c34ac3f3 https://git.kernel.org/stable/c/f5bce28f6b9125502abec4a67d68eabcd24b3b17