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 B027C1D6A8 for ; Sun, 19 May 2024 08:37: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=1716107872; cv=none; b=jfAVuW0Jl0wFt36GtO5yPeCCBT43vEnRKF/ByFOIhr0mNC13V6XOUYgUr8G+76zDGDLkckafZ1Kj0jZKD4XumPvJ75j9uUTd0M3NvrxwlYyKcOIExl9AUo+CuHJbeFRr9x2H1VsbWL94dnso1RruFY6YlaJLdGDsJNyK4ITvv3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716107872; c=relaxed/simple; bh=iWppQgPCDkMjF2Vk4QgFnUpFBrmr/p/IEN4+GbnLGsM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=s7Eq4ULj9BQbQpHbbpHlGAaZ38RS01iX9r8y4iIU/zklel00hYdx4OqGMii5aChdjHX9YqDPJC4FiuyQbGHOImc8R9mPKpzDlJz6J+VigkoL6ekfVXZfBlzJCVtIV+20thgGQ3hurg0Mr1JCzUKHXzpsurBzey5a4sG0f7hsEHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=aLFw+e+b; 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="aLFw+e+b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3775BC32781; Sun, 19 May 2024 08:37:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716107872; bh=iWppQgPCDkMjF2Vk4QgFnUpFBrmr/p/IEN4+GbnLGsM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=aLFw+e+bO529Dr3rH68hS/6cQhu6Ix6EZw+cjh2FuzdFXEj7q4GIB7pxqURjOdcy3 Lf7KhO6XtLYlEE4prP+VLzK8G8eczmdjKa7XClcW1yqSmoEe+33K6wSim8/WGlpntW KTK1nmrkp4cbOTn3HSBhVZld3wATZrmeg/PsBa+k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35890: gro: fix ownership transfer Date: Sun, 19 May 2024 10:35:04 +0200 Message-ID: <2024051948-CVE-2024-35890-beaa@gregkh> X-Mailer: git-send-email 2.45.1 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=2949; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iWppQgPCDkMjF2Vk4QgFnUpFBrmr/p/IEN4+GbnLGsM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeO1ccMGj7K7qi4169TGJJ0Ps/l9PDy3YyXy+QUtf21 FaZtXxyRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzEaCrD/LiqZbstlbRiPbeu ytrz8JfL7jVdmQzz64yUOPUmLnzuyZmdr6d3u/rDhbkqAA== 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: gro: fix ownership transfer If packets are GROed with fraglist they might be segmented later on and continue their journey in the stack. In skb_segment_list those skbs can be reused as-is. This is an issue as their destructor was removed in skb_gro_receive_list but not the reference to their socket, and then they can't be orphaned. Fix this by also removing the reference to the socket. For example this could be observed, kernel BUG at include/linux/skbuff.h:3131! (skb_orphan) RIP: 0010:ip6_rcv_core+0x11bc/0x19a0 Call Trace: ipv6_list_rcv+0x250/0x3f0 __netif_receive_skb_list_core+0x49d/0x8f0 netif_receive_skb_list_internal+0x634/0xd40 napi_complete_done+0x1d2/0x7d0 gro_cell_poll+0x118/0x1f0 A similar construction is found in skb_gro_receive, apply the same change there. The Linux kernel CVE team has assigned CVE-2024-35890 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 5e10da5385d2 and fixed in 5.15.154 with commit d225b0ac96dc Issue introduced in 5.15 with commit 5e10da5385d2 and fixed in 6.1.85 with commit 2eeab8c47c3c Issue introduced in 5.15 with commit 5e10da5385d2 and fixed in 6.6.26 with commit fc126c1d51e9 Issue introduced in 5.15 with commit 5e10da5385d2 and fixed in 6.8.5 with commit 5b3b67f73129 Issue introduced in 5.15 with commit 5e10da5385d2 and fixed in 6.9 with commit ed4cccef64c1 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-35890 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/gro.c net/ipv4/udp_offload.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/d225b0ac96dc40d7e8ae2bc227eb2c56e130975f https://git.kernel.org/stable/c/2eeab8c47c3c0276e0746bc382f405c9a236a5ad https://git.kernel.org/stable/c/fc126c1d51e9552eacd2d717b9ffe9262a8a4cd6 https://git.kernel.org/stable/c/5b3b67f731296027cceb3efad881ae281213f86f https://git.kernel.org/stable/c/ed4cccef64c1d0d5b91e69f7a8a6697c3a865486