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 60521315D30 for ; Wed, 24 Dec 2025 10:35:47 +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=1766572549; cv=none; b=uErvLpcyb2kARE+DJ5r1EDi0TcaiPZKnzZvrY9DIZOamnV8C2rM407IqR5PByGZTl9JjnH7MfmbtHSJ4/qq2CrMZ9wSE4KFpW5kmeWr5sa4zcDedGwBbXbQ05K9e4TDcQaACXyyjx6BkFCjki2c8TQOwt1pYlcnSmCmR6uk2KRk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572549; c=relaxed/simple; bh=37+v4I3JLocnXr6qlP5cINJ3Aya3YJJByPeDKAA0o5g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A8bZ9QYaUqT+DGj3bS0FlDT4nuTr5TmUhp1uuSw9orC19Vc0xHp1tOKckNK4SXk4ErCushHr4vLy8fql0JWUlZm5KqGaBiyb2S4+6HZsLFkNPVulf22j+HS7/H5Ava2KZg2NPiB0f9ojnyjw9R6x0HvuNZ1WvgIigCiapyUGq3o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Arc4TBKv; 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="Arc4TBKv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8FA2EC4CEFB; Wed, 24 Dec 2025 10:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572546; bh=37+v4I3JLocnXr6qlP5cINJ3Aya3YJJByPeDKAA0o5g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Arc4TBKvN5JQN13+1OTalkUJrP7e6oeANsWZ4ECtYVeiwlJUj089V4q98dIGMC+Dm SXHb32UWJiVwlhFGGkON+YbrdaLVu+1orZfskW2Un4JPjecwnTjpic7qhXyhaxYP8N Ll9zNMoVoXajJO3rvua8k1dLvHE+iOlyOtU1Z+SI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68363: bpf: Check skb->transport_header is set in bpf_skb_check_mtu Date: Wed, 24 Dec 2025 11:35:08 +0100 Message-ID: <2025122458-CVE-2025-68363-3863@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=3269; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=e2l7BML/nvQTx5+9rrZN7hWbZeKCfjUwNihYcItz28k=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneBy9t+pfzQGPh/UcNEW3d9Snlk6UkdXrUN/VsDPD34 J93JjK+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZieJphwUm72Rv7uG+eNbyt wbYibId38OnmTob5GbfsGOtP9Mnb6J4SPH8+f+PE/IOXAA== 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: bpf: Check skb->transport_header is set in bpf_skb_check_mtu The bpf_skb_check_mtu helper needs to use skb->transport_header when the BPF_MTU_CHK_SEGS flag is used: bpf_skb_check_mtu(skb, ifindex, &mtu_len, 0, BPF_MTU_CHK_SEGS) The transport_header is not always set. There is a WARN_ON_ONCE report when CONFIG_DEBUG_NET is enabled + skb->gso_size is set + bpf_prog_test_run is used: WARNING: CPU: 1 PID: 2216 at ./include/linux/skbuff.h:3071 skb_gso_validate_network_len bpf_skb_check_mtu bpf_prog_3920e25740a41171_tc_chk_segs_flag # A test in the next patch bpf_test_run bpf_prog_test_run_skb For a normal ingress skb (not test_run), skb_reset_transport_header is performed but there is plan to avoid setting it as described in commit 2170a1f09148 ("net: no longer reset transport_header in __netif_receive_skb_core()"). This patch fixes the bpf helper by checking skb_transport_header_was_set(). The check is done just before skb->transport_header is used, to avoid breaking the existing bpf prog. The WARN_ON_ONCE is limited to bpf_prog_test_run, so targeting bpf-next. The Linux kernel CVE team has assigned CVE-2025-68363 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 34b2021cc61642d61c3cf943d9e71925b827941b and fixed in 6.12.63 with commit 30ce906557a21adef4cba5901c8e995dc18263a9 Issue introduced in 5.12 with commit 34b2021cc61642d61c3cf943d9e71925b827941b and fixed in 6.17.13 with commit 1c30e4afc5507f0069cc09bd561e510e4d97fbf7 Issue introduced in 5.12 with commit 34b2021cc61642d61c3cf943d9e71925b827941b and fixed in 6.18.2 with commit 942268e2726ac7f16e3ec49dbfbbbe7cf5af9da5 Issue introduced in 5.12 with commit 34b2021cc61642d61c3cf943d9e71925b827941b and fixed in 6.19-rc1 with commit d946f3c98328171fa50ddb908593cf833587f725 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-68363 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: net/core/filter.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/30ce906557a21adef4cba5901c8e995dc18263a9 https://git.kernel.org/stable/c/1c30e4afc5507f0069cc09bd561e510e4d97fbf7 https://git.kernel.org/stable/c/942268e2726ac7f16e3ec49dbfbbbe7cf5af9da5 https://git.kernel.org/stable/c/d946f3c98328171fa50ddb908593cf833587f725