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 5C0552E92D2 for ; Wed, 24 Dec 2025 10:37:25 +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=1766572645; cv=none; b=Xe0b+nwi+Fzax6SdPgZItqpKdYBLCsz9omMcy2elTfBggh+fMijDWAv2TCgrLAITQFwG9rvTspaMRcF2TvbxHhb3kUQ7kZe4ZvGlXAb/TZQLRMRFH8B3FZeIuBOnQKr01PfA6tfgVyjp85CPGnaPfPd6PsFQ/8sNN3emXGXgJ0s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766572645; c=relaxed/simple; bh=QT7KA7QZ5nYrmtpdzKza/FdUaIiqz86HkW54wyl7JcQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P/COheULbtq2rRMGRgsLbPa2hYf43iBS9o9a9Dlz0+MmDgpFvTsjjihUhW99z19OhwEz1KWIFB0vektSnu4a0E0RrZiteJFR9BN0Gl6g1GAkAeMPwINX7hKepLdBCNxr3ajqC8rARvwgX1aRETXLhigm/yITJYZ+L1oft78MDeI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nKB5jcwL; 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="nKB5jcwL" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB5E9C4CEFB; Wed, 24 Dec 2025 10:37:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766572645; bh=QT7KA7QZ5nYrmtpdzKza/FdUaIiqz86HkW54wyl7JcQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=nKB5jcwLlmXPZU3OsnIWq8HeC+IvyHCejr4+SFfCM1BPDKW1h+tvoQ2eUQ6UVxKJK 5te8lffj4hDh+Tq4TBgXyypdVDpAUBMV82a53CytGkubLrtSaCiMuxsibtBYK+NYWz zX2L6qS43z8Ndoma83s16Pysmg7wzkDTPnym2DX4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68725: bpf: Do not let BPF test infra emit invalid GSO types to stack Date: Wed, 24 Dec 2025 11:35:27 +0100 Message-ID: <2025122404-CVE-2025-68725-4488@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=3228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lsaWRpZLGjb6KVsPFBeBbFX0uavbV63j9qDqr8YQy10=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneB2+YGvaY58f5HkxXex2Qrh7ifc+xI+htpuVqjsbNm dvbrpl3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETSjjAs2HDeb5t6klA8S1DL JeGXe4q9la+7MMzhfjTN6fQOcWfxN9ITGRzd+M+bnjwKAA== 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: Do not let BPF test infra emit invalid GSO types to stack Yinhao et al. reported that their fuzzer tool was able to trigger a skb_warn_bad_offload() from netif_skb_features() -> gso_features_check(). When a BPF program - triggered via BPF test infra - pushes the packet to the loopback device via bpf_clone_redirect() then mentioned offload warning can be seen. GSO-related features are then rightfully disabled. We get into this situation due to convert___skb_to_skb() setting gso_segs and gso_size but not gso_type. Technically, it makes sense that this warning triggers since the GSO properties are malformed due to the gso_type. Potentially, the gso_type could be marked non-trustworthy through setting it at least to SKB_GSO_DODGY without any other specific assumptions, but that also feels wrong given we should not go further into the GSO engine in the first place. The checks were added in 121d57af308d ("gso: validate gso_type in GSO handlers") because there were malicious (syzbot) senders that combine a protocol with a non-matching gso_type. If we would want to drop such packets, gso_features_check() currently only returns feature flags via netif_skb_features(), so one location for potentially dropping such skbs could be validate_xmit_unreadable_skb(), but then otoh it would be an additional check in the fast-path for a very corner case. Given bpf_clone_redirect() is the only place where BPF test infra could emit such packets, lets reject them right there. The Linux kernel CVE team has assigned CVE-2025-68725 to this issue. Affected and fixed versions =========================== Issue introduced in 5.6 with commit 850a88cc4096fe1df407452ba2e4d28cf5b3eee9 and fixed in 6.18.2 with commit fbea4c63b5385588cb44ab21f91e55e33c719a54 Issue introduced in 5.6 with commit 850a88cc4096fe1df407452ba2e4d28cf5b3eee9 and fixed in 6.19-rc1 with commit 04a899573fb87273a656f178b5f920c505f68875 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-68725 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/bpf/test_run.c 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/fbea4c63b5385588cb44ab21f91e55e33c719a54 https://git.kernel.org/stable/c/04a899573fb87273a656f178b5f920c505f68875