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 362511E909A for ; Mon, 21 Oct 2024 12:04:07 +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=1729512247; cv=none; b=n/+dUcTC0CU9TMus4eaQyh/yK5kaTZSla2G/e1w1IHtuYI5ItoJ6vFylzPd8Obt2z1TRxbF4J/OcJpj29d5wlbI7NV5cVkQmNXBcELbrfA6+pNTt+Bqo30oE1fp9flvdkTYVwnYcg3OMRqZpYNX2fBIQyliIKzqWWScJPhGTKms= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729512247; c=relaxed/simple; bh=0P9lMFVgf19VzDZrhWEaa2nvF74hP/VuAnyeUwAdZas=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RVZqEh4eNSkN19NqM/JLht/SM7VvjGl8vwUMS7KgUedAb4kCAvK+WumrrT7Cm1M+JNp7eeZnYQ1U3rLspdAPzZcjcK8fhAJLceHv0tST0zcSPSexyLZAFZ64VOsQM5GaYroFnBI7VPmAfqMy8QamAkXSGDZI88lv6pcx+I+5fSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=zGaNxuuA; 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="zGaNxuuA" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A763BC4CEC3; Mon, 21 Oct 2024 12:04:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729512247; bh=0P9lMFVgf19VzDZrhWEaa2nvF74hP/VuAnyeUwAdZas=; h=From:To:Cc:Subject:Date:Reply-to:From; b=zGaNxuuAKLdJ1QFQ6+nSG/fv1PX81m2CLCu04LcssRyvXJ/jmQQJn2P3eJYjXf/bX UFD8IXF6mGCdCtus/5/JsRqKCSOpSyMjRyuR2k1d3CtWRv5NgZ+kOA/lmo0KG7/JN1 tMsnjfb+DkiNJTb6E7pEKwu0VKvSG6DRGIZuyST4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-47708: netkit: Assign missing bpf_net_context Date: Mon, 21 Oct 2024 14:00:36 +0200 Message-ID: <2024102117-CVE-2024-47708-2b8f@gregkh> X-Mailer: git-send-email 2.47.0 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=2118; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0P9lMFVgf19VzDZrhWEaa2nvF74hP/VuAnyeUwAdZas=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliToFuy48KBHe8dxFZxuipcGuDcvbmVPbbSYuTOp+UM Dz32LW+I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbC+5thfn66vNyzLYulbV5e kWvY8sfQ7pW3N8NcudBln+b7Osz9lbFzYf29cIsNgv83AAA= 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: netkit: Assign missing bpf_net_context During the introduction of struct bpf_net_context handling for XDP-redirect, the netkit driver has been missed, which also requires it because NETKIT_REDIRECT invokes skb_do_redirect() which is accessing the per-CPU variables. Otherwise we see the following crash: BUG: kernel NULL pointer dereference, address: 0000000000000038 bpf_redirect() netkit_xmit() dev_hard_start_xmit() Set the bpf_net_context before invoking netkit_xmit() program within the netkit driver. The Linux kernel CVE team has assigned CVE-2024-47708 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 401cb7dae813 and fixed in 6.11.2 with commit 182c6fed8c7f Issue introduced in 6.11 with commit 401cb7dae813 and fixed in 6.12-rc1 with commit 157f29152b61 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-47708 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/netkit.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/182c6fed8c7f62cddce0126ec1fc0da2b700fb11 https://git.kernel.org/stable/c/157f29152b61ca41809dd7ead29f5733adeced19