Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 6E8E83B7B72 for ; Thu, 17 Sep 2026 16:16:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661818; cv=none; b=NXRG6LEAxm6HlYb708oYSXMuXjmg7HvSKs53aI7DvjJAVxqTJBo01oAOS8WV7KgBRL+Ln5KPXPi4XKmMQKVw60040EFd4eguvPa5//x8cKBhI0BUCa79MiYMcDlwN7WYVF+k638Hy+cvpDs2oaDhEBdBxYhAJOzLj3sInWASTW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789661818; c=relaxed/simple; bh=TMmXf+w4qjhcuyei+37TVeWSOtJZjmgVyvEawjUNKdw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=b/8m65jkC3N4tDfby40VEXOEkH/lRUDrq2v1LZMtr0y+jPv3C0JzhVy0yZCA0Fq8vJVDQseKGuPx90Yu67rEMvVKH9DDfaW8R6YTNuX4pulVbZn6z0Bx/Ijq6LLeBMrdTmGQgzcwaADPZ1x1APV7ogW9GO7pZLtMPox6Se6fl0Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PP/K7QC4; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PP/K7QC4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 691D81F000FF; Thu, 17 Sep 2026 16:16:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789661817; bh=ronAeL2ddiW1HAALZsDrZuHg67DzxqMREfAG8VPsh0U=; h=From:To:Cc:Subject:Date:Reply-To; b=PP/K7QC4YPquPmz6+bcRUmDX+IrbFc9zXiXQUcMyfgR0SNKgI30ncO1aLVjnMD3WJ MTX0MhFuk4VFR0AK0HoqThh2tI7EQN7aLQ4SIF6PWkN09hpRFkMm7PQlASK2pn9zM4 cT4NWgdzbDi9cksiVgRTOQfWblZPGJxeft3D8/AE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90146: bpf, xdp: move offload check into dev_xdp_install() Date: Thu, 17 Sep 2026 17:09:36 +0100 Message-ID: <2026091722-CVE-2026-90146-a209@gregkh> X-Mailer: git-send-email 2.55.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=2677; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wy9MkLr3YXsG8gLAepqWSJZrM4M8/FVY3yknpYvhHRY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBMrWvA8zm5DMa2jDq2z2v3iLjfGlQv+V+ueubn0Tt FQl9q1CRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkJyfD/LrOn1bx8pYv1Z2X zjmXtTK4qrH0MMP80IUOvWumszrVHfyvbpQ1e9GdKvNjAA== 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, xdp: move offload check into dev_xdp_install() bpf_xdp_link_update() calls dev_xdp_install() directly and skips dev_xdp_attach(), so the checks in dev_xdp_attach() do not run. A user can make an XDP link with a normal program and then swap in an offloaded or device-bound program with BPF_LINK_UPDATE, which puts it on the software path. dev_xdp_install() is the one place all three paths go through: "ip link set xdp" and BPF_LINK_CREATE reach it via dev_xdp_attach(), and BPF_LINK_UPDATE calls it directly. So move the program checks (offloaded, bound to another device, device-bound in generic mode, native vs generic, DEVMAP and CPUMAP) there, and keep only the netlink-flag check (XDP_FLAGS_UPDATE_IF_NOEXIST) in dev_xdp_attach(). The Linux kernel CVE team has assigned CVE-2026-90146 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit 026a4c28e1db3b0cb99cd9a3e495d4a8b632fa74 and fixed in 6.18.52 with commit ea7b35dcc9430293b861bc7bad0c546f193c85f9 Issue introduced in 5.9 with commit 026a4c28e1db3b0cb99cd9a3e495d4a8b632fa74 and fixed in 7.2.6 with commit 03022dd874070768a7099f18b1944c633641315f Issue introduced in 5.9 with commit 026a4c28e1db3b0cb99cd9a3e495d4a8b632fa74 and fixed in 7.3-rc1 with commit ad27ed7d2309419a129078d781504f486b1b469a 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-2026-90146 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/dev.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/ea7b35dcc9430293b861bc7bad0c546f193c85f9 https://git.kernel.org/stable/c/03022dd874070768a7099f18b1944c633641315f https://git.kernel.org/stable/c/ad27ed7d2309419a129078d781504f486b1b469a