CVE-2026-23212: bonding: annotate data-races around slave->last_rx
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
bonding: annotate data-races around slave->last_rx
slave->last_rx and slave->target_last_arp_rx[...] can be read and written locklessly. Add READ_ONCE() and WRITE_ONCE() annotations.
syzbot reported:
BUG: KCSAN: data-race in bond_rcv_validate / bond_rcv_validate
write to 0xffff888149f0d428 of 8 bytes by interrupt on cpu 1:
bond_rcv_validate+0x202/0x7a0 drivers/net/bonding/bond_main.c:3335 bond_handle_frame+0xde/0x5e0 drivers/net/bonding/bond_main.c:1533 __netif_receive_skb_core+0x5b1/0x1950 net/core/dev.c:6039 __netif_receive_skb_one_core net/core/dev.c:6150 [inline] __netif_receive_skb+0x59/0x270 net/core/dev.c:6265 netif_receive_skb_internal net/core/dev.c:6351 [inline] netif_receive_skb+0x4b/0x2d0 net/core/dev.c:6410
...
write to 0xffff888149f0d428 of 8 bytes by interrupt on cpu 0:
bond_rcv_validate+0x202/0x7a0 drivers/net/bonding/bond_main.c:3335 bond_handle_frame+0xde/0x5e0 drivers/net/bonding/bond_main.c:1533 __netif_receive_skb_core+0x5b1/0x1950 net/core/dev.c:6039 __netif_receive_skb_one_core net/core/dev.c:6150 [inline] __netif_receive_skb+0x59/0x270 net/core/dev.c:6265 netif_receive_skb_internal net/core/dev.c:6351 [inline] netif_receive_skb+0x4b/0x2d0 net/core/dev.c:6410 br_netif_receive_skb net/bridge/br_input.c:30 [inline] NF_HOOK include/linux/netfilter.h:318 [inline]
...
value changed: 0x0000000100005365 -> 0x0000000100005366
The Linux kernel CVE team has assigned CVE-2026-23212 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.19 with commit f5b2b966f032f22d3a289045a5afd4afa09f09c6 and fixed in 6.1.162 with commit a7516cb0165926d308187e231ccd330e5e3ebff7 Issue introduced in 2.6.19 with commit f5b2b966f032f22d3a289045a5afd4afa09f09c6 and fixed in 6.6.123 with commit 8c0be3277e7aefb2f900fc37ca3fe7df362e26f5 Issue introduced in 2.6.19 with commit f5b2b966f032f22d3a289045a5afd4afa09f09c6 and fixed in 6.12.69 with commit b956289b83887e0a306067b6003c3fcd81bfdf84 Issue introduced in 2.6.19 with commit f5b2b966f032f22d3a289045a5afd4afa09f09c6 and fixed in 6.18.9 with commit bd98324e327e41de04b13e372cc16f73150df254 Issue introduced in 2.6.19 with commit f5b2b966f032f22d3a289045a5afd4afa09f09c6 and fixed in 6.19 with commit f6c3665b6dc53c3ab7d31b585446a953a74340ef
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-23212
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/bonding/bond_main.c
drivers/net/bonding/bond_options.c
include/net/bonding.h
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/a7516cb0165926d308187e231ccd330e5e3ebff7 https://git.kernel.org/stable/c/8c0be3277e7aefb2f900fc37ca3fe7df362e26f5 https://git.kernel.org/stable/c/b956289b83887e0a306067b6003c3fcd81bfdf84 https://git.kernel.org/stable/c/bd98324e327e41de04b13e372cc16f73150df254 https://git.kernel.org/stable/c/f6c3665b6dc53c3ab7d31b585446a953a74340ef