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 E5FB336DA08 for ; Fri, 20 Mar 2026 08:13:48 +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=1773994429; cv=none; b=GilTP52Y0k+treW2TImj8yzsamNaFJ7sz27Z5Qs5B05sjGfZExgK0CZ9iNI3jrBtISoHN8PGm5y+TsJlo0gKFgIKW2BHcMAkF51xGIKlczDpwnAZIRuXE5sYiO6o6I1ICWzVIFo3sbRcHa0RrXaqH9MKYfpIuVK961P49PKqKws= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773994429; c=relaxed/simple; bh=tJC4oPDSSHrEGjGXQUWMg4IzHG/8ciBSEOdp8t2lA9w=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=X4YM6qNSkAOLquiQ8C4wH+JDqXZonU3g8kAFyMyKUXmcZhBh7untZgCJoR3w6/2IEXJgydncUT4E/Qfs9Df3wfS1O03gBZMdfFvpyVQzjLQfIqLE/UWO99lOCpdIjiYwx1leLM9JYzfcIUrJz4/CBgxWhniKP86rXuSpBfkZRbc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y0I/5zLY; 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="Y0I/5zLY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2CABAC4CEF7; Fri, 20 Mar 2026 08:13:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773994428; bh=tJC4oPDSSHrEGjGXQUWMg4IzHG/8ciBSEOdp8t2lA9w=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Y0I/5zLYyxvwEDeH/9pMZL9NFSnz2Uv1UDsvoebstb/xoEBafQddAZZ+cdPD1RwYq tsk0GVXbx/0IB88AL9amqqGUDPzzuZ+3w2e1/WIwVIzKd8FZwqM2GVI/iVbT7rIFYa m5Hsz2FISNybreHJgziGvDQa5peTF9QVUM5wXXTc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23273: macvlan: observe an RCU grace period in macvlan_common_newlink() error path Date: Fri, 20 Mar 2026 09:13:34 +0100 Message-ID: <2026032034-CVE-2026-23273-3669@gregkh> X-Mailer: git-send-email 2.53.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=6582; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HiDT6iBu+y6a8izddzRNf5E44LMO4bV2AXKFc046TRw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl7Gdet/r7IvKtOMyNi08QFl645ZP4vOepy+fn9uJQbW 55IPmCJ6YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJuBYxzK+cIikYntdo/kts Ygsbu0f7tPrb1QzzbBeF87p/yJtu9CJ/Gb99qc3LbXO4AQ== 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: macvlan: observe an RCU grace period in macvlan_common_newlink() error path valis reported that a race condition still happens after my prior patch. macvlan_common_newlink() might have made @dev visible before detecting an error, and its caller will directly call free_netdev(dev). We must respect an RCU period, either in macvlan or the core networking stack. After adding a temporary mdelay(1000) in macvlan_forward_source_one() to open the race window, valis repro was: ip link add p1 type veth peer p2 ip link set address 00:00:00:00:00:20 dev p1 ip link set up dev p1 ip link set up dev p2 ip link add mv0 link p2 type macvlan mode source (ip link add invalid% link p2 type macvlan mode source macaddr add 00:00:00:00:00:20 &) ; sleep 0.5 ; ping -c1 -I p1 1.2.3.4 PING 1.2.3.4 (1.2.3.4): 56 data bytes RTNETLINK answers: Invalid argument BUG: KASAN: slab-use-after-free in macvlan_forward_source (drivers/net/macvlan.c:408 drivers/net/macvlan.c:444) Read of size 8 at addr ffff888016bb89c0 by task e/175 CPU: 1 UID: 1000 PID: 175 Comm: e Not tainted 6.19.0-rc8+ #33 NONE Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.14.0-2 04/01/2014 Call Trace: dump_stack_lvl (lib/dump_stack.c:123) print_report (mm/kasan/report.c:379 mm/kasan/report.c:482) ? macvlan_forward_source (drivers/net/macvlan.c:408 drivers/net/macvlan.c:444) kasan_report (mm/kasan/report.c:597) ? macvlan_forward_source (drivers/net/macvlan.c:408 drivers/net/macvlan.c:444) macvlan_forward_source (drivers/net/macvlan.c:408 drivers/net/macvlan.c:444) ? tasklet_init (kernel/softirq.c:983) macvlan_handle_frame (drivers/net/macvlan.c:501) Allocated by task 169: kasan_save_stack (mm/kasan/common.c:58) kasan_save_track (./arch/x86/include/asm/current.h:25 mm/kasan/common.c:70 mm/kasan/common.c:79) __kasan_kmalloc (mm/kasan/common.c:419) __kvmalloc_node_noprof (./include/linux/kasan.h:263 mm/slub.c:5657 mm/slub.c:7140) alloc_netdev_mqs (net/core/dev.c:12012) rtnl_create_link (net/core/rtnetlink.c:3648) rtnl_newlink (net/core/rtnetlink.c:3830 net/core/rtnetlink.c:3957 net/core/rtnetlink.c:4072) rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) netlink_rcv_skb (net/netlink/af_netlink.c:2550) netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) netlink_sendmsg (net/netlink/af_netlink.c:1894) __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2206) __x64_sys_sendto (net/socket.c:2209) do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:131) Freed by task 169: kasan_save_stack (mm/kasan/common.c:58) kasan_save_track (./arch/x86/include/asm/current.h:25 mm/kasan/common.c:70 mm/kasan/common.c:79) kasan_save_free_info (mm/kasan/generic.c:587) __kasan_slab_free (mm/kasan/common.c:287) kfree (mm/slub.c:6674 mm/slub.c:6882) rtnl_newlink (net/core/rtnetlink.c:3845 net/core/rtnetlink.c:3957 net/core/rtnetlink.c:4072) rtnetlink_rcv_msg (net/core/rtnetlink.c:6958) netlink_rcv_skb (net/netlink/af_netlink.c:2550) netlink_unicast (net/netlink/af_netlink.c:1319 net/netlink/af_netlink.c:1344) netlink_sendmsg (net/netlink/af_netlink.c:1894) __sys_sendto (net/socket.c:727 net/socket.c:742 net/socket.c:2206) __x64_sys_sendto (net/socket.c:2209) do_syscall_64 (arch/x86/entry/syscall_64.c:63 arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:131) The Linux kernel CVE team has assigned CVE-2026-23273 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.250 with commit da5c6b8ae47e414be47e5e04def15b25d5c962dc and fixed in 5.10.252 with commit 91e4ff8d966978901630fc29582c1a76d3c6e46c Issue introduced in 5.15.200 with commit 5dae6b36a7cb7a4fcf4121b95e9ca7f96f816c8a and fixed in 5.15.202 with commit 3d94323c80d7fc4da5f10f9bb06a45d39d5d3cc4 Issue introduced in 6.1.163 with commit c43d0e787cbba569ec9d11579ed370b50fab6c9c and fixed in 6.1.165 with commit 721eb342d9ba19bad5c4815ea3921465158b7362 Issue introduced in 6.6.124 with commit 11ba9f0dc865136174cb98834280fb21bbc950c7 and fixed in 6.6.128 with commit 19c7d8ac51988d053709c1e85bd8482076af845d Issue introduced in 6.12.70 with commit 986967a162142710076782d5b93daab93a892980 and fixed in 6.12.75 with commit a1f686d273d129b45712d95f4095843b864466bd Issue introduced in 6.18.10 with commit cdedcd5aa3f3cb8b7ae0f87ab3a936d0bd583d66 and fixed in 6.18.14 with commit d34f7a8aa9a25b7e64e0e46e444697c0f702374d Issue introduced in 6.19 with commit f8db6475a83649689c087a8f52486fcc53e627e9 and fixed in 6.19.4 with commit 1e58ae87ad1e6e24368dea9aec9048c758cd0e2b Issue introduced in 6.19 with commit f8db6475a83649689c087a8f52486fcc53e627e9 and fixed in 7.0-rc1 with commit e3f000f0dee1bfab52e2e61ca6a3835d9e187e35 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-23273 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/macvlan.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/91e4ff8d966978901630fc29582c1a76d3c6e46c https://git.kernel.org/stable/c/3d94323c80d7fc4da5f10f9bb06a45d39d5d3cc4 https://git.kernel.org/stable/c/721eb342d9ba19bad5c4815ea3921465158b7362 https://git.kernel.org/stable/c/19c7d8ac51988d053709c1e85bd8482076af845d https://git.kernel.org/stable/c/a1f686d273d129b45712d95f4095843b864466bd https://git.kernel.org/stable/c/d34f7a8aa9a25b7e64e0e46e444697c0f702374d https://git.kernel.org/stable/c/1e58ae87ad1e6e24368dea9aec9048c758cd0e2b https://git.kernel.org/stable/c/e3f000f0dee1bfab52e2e61ca6a3835d9e187e35