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 137E7429029 for ; Mon, 27 Jul 2026 20:11:40 +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=1785183102; cv=none; b=KfVKGHtWMWGIWY6a6yFuRdjWCtMsOEV8q8X7dygmgLevuIcYAp8EH1rqyB+8j3zuglrq+fNGIHZ4Aa/tC5YIlH6k6k1HYIRZrH2rrQd9khrEQ+hd7sf1did8d26BAyh8fa11GTLmkCS/gigNmDffLt6l3IGuVpHquP8tLI7FECY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785183102; c=relaxed/simple; bh=9AEKBH+i8FGD1mYQStZPm673smUDvr7vfU3spG46H+w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jRTtiuEtk3oECnnAUiC2DnPmYYShcqd23yGrV4axoXBtX7D/xpkgutnSUTd77Mg1aTX6Ca/W2hs4HZRIG5eQFK7kVOgcs3uJbvDU9/rx2vGqvI9quDW+trFSWQ2imBNBJd5Imdj2VmR839tClCFP7+65HRoJ4vlG+zHcqa5le2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uLS9ABho; 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="uLS9ABho" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3E7BD1F00A3A; Mon, 27 Jul 2026 20:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1785183100; bh=JGqzRlCLyzxPPUAFUWpXyWt1hRHlU02T8alDyi76+DY=; h=From:To:Cc:Subject:Date:Reply-To; b=uLS9ABhocxe4WXLzPH2UVc8WgxpyQ3oz4RktfriWuy+PG/bLo2TjHUyrgjCOFyUG2 eQ2ETwP0KIoAMj6oixuOdI+VF69Rq4YkssYTn6hxkfsAGuRERyIIpB4JbWNCqGC4bh eh5qjecnq7s99DwgL484reX6EUVplcsxQBgJcy8c= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64545: net, bpf: check master for NULL in xdp_master_redirect() Date: Mon, 27 Jul 2026 22:10:43 +0200 Message-ID: <2026072736-CVE-2026-64545-25d6@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=4470; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7Hrh+RFwZ4abOXI3nwdR6dEF2+Txr8FnLLXZxo6rRVQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnpu230tetPPD21/W2Tps9BG//w40a9MyxENTbZTudz1 yt4YlzfEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABMRX8awYFLLnXu75kteu7RA eqb2Mr2vMXu2hTLM05I5Hjp1/z9tjgIV39s1BUm35uSrAgA= 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: net, bpf: check master for NULL in xdp_master_redirect() xdp_master_redirect() dereferences the result of netdev_master_upper_dev_get_rcu() without a NULL check, but that helper returns NULL when the receiving device has no upper-master adjacency. The reach guard only checks netif_is_bond_slave(). On bond slave release bond_upper_dev_unlink() drops the upper-master adjacency before clearing IFF_SLAVE, so an XDP_TX reaching xdp_master_redirect() in that window still passes netif_is_bond_slave() while master is already NULL, and faults on master->flags at offset 0xb0: BUG: kernel NULL pointer dereference, address: 00000000000000b0 RIP: 0010:xdp_master_redirect (net/core/filter.c:4432) Call Trace: xdp_master_redirect (net/core/filter.c:4432) bpf_prog_run_generic_xdp (include/net/xdp.h:700) do_xdp_generic (net/core/dev.c:5608) __netif_receive_skb_one_core (net/core/dev.c:6204) process_backlog (net/core/dev.c:6319) __napi_poll (net/core/dev.c:7729) net_rx_action (net/core/dev.c:7792) handle_softirqs (kernel/softirq.c:622) __dev_queue_xmit (include/linux/bottom_half.h:33) packet_sendmsg (net/packet/af_packet.c:3082) __sys_sendto (net/socket.c:2252) Kernel panic - not syncing: Fatal exception in interrupt The missing check dates back to the original code; commit 1921f91298d1 ("net, bpf: fix null-ptr-deref in xdp_master_redirect() for down master") later added the master->flags read where the fault now lands but kept the unconditional deref. Check master for NULL before use; a NULL master is treated the same as one that is not up. The Linux kernel CVE team has assigned CVE-2026-64545 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 5.15.212 with commit c99ca049e910d61ddbd28cc2c47242f2bfbb4970 Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 6.1.178 with commit e2a56441233131fe18a76001de347ecda217e40c Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 6.6.145 with commit 3876318ea54e83eb70982b8280a3c5e4e32269bf Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 6.12.97 with commit 4edbcacca09f92b85d3951b6add11894b20a84bc Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 6.18.40 with commit 03b743586a2469744e96e9c1015096d07240935d Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 7.1.5 with commit 89c103d702b25ceb2d097faf854deb47b53b17ff Issue introduced in 5.15 with commit 879af96ffd72706c6e3278ea6b45b0b0e37ec5d7 and fixed in 7.2-rc1 with commit e82d8cc4321c373dc46e741cd2dfdaa7921fddb7 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-64545 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/c99ca049e910d61ddbd28cc2c47242f2bfbb4970 https://git.kernel.org/stable/c/e2a56441233131fe18a76001de347ecda217e40c https://git.kernel.org/stable/c/3876318ea54e83eb70982b8280a3c5e4e32269bf https://git.kernel.org/stable/c/4edbcacca09f92b85d3951b6add11894b20a84bc https://git.kernel.org/stable/c/03b743586a2469744e96e9c1015096d07240935d https://git.kernel.org/stable/c/89c103d702b25ceb2d097faf854deb47b53b17ff https://git.kernel.org/stable/c/e82d8cc4321c373dc46e741cd2dfdaa7921fddb7