CVE
CVE-2026-23273
CNA 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: <IRQ> 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…
Affected versions
All Linux kernel vulnerabilities →
- ≥ 6.19.1, < 6.19.4Fixed in 6.19.4
- ≥ 6.18.10, < 6.18.14Fixed in 6.18.14
- ≥ 6.12.70, < 6.12.75Fixed in 6.12.75
- ≥ 6.6.124, < 6.6.128Fixed in 6.6.128
- ≥ 6.1.163, < 6.1.165Fixed in 6.1.165
- ≥ 5.15.200, < 5.15.202Fixed in 5.15.202
- ≥ 5.10.250, < 5.10.252Fixed in 5.10.252
Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.
Advisories and patches
- git.kernel.org/stable/c/19c7d8ac51988d053709c1e85bd8482076af845d · Patch
- git.kernel.org/stable/c/1e58ae87ad1e6e24368dea9aec9048c758cd0e2b · Patch
- git.kernel.org/stable/c/3d94323c80d7fc4da5f10f9bb06a45d39d5d3cc4 · Patch
- git.kernel.org/stable/c/721eb342d9ba19bad5c4815ea3921465158b7362 · Patch
- git.kernel.org/stable/c/91e4ff8d966978901630fc29582c1a76d3c6e46c · Patch
- git.kernel.org/stable/c/a1f686d273d129b45712d95f4095843b864466bd · Patch
- git.kernel.org/stable/c/d34f7a8aa9a25b7e64e0e46e444697c0f702374d · Patch
- git.kernel.org/stable/c/e3f000f0dee1bfab52e2e61ca6a3835d9e187e35 · Patch
Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.