syzbot


KASAN: global-out-of-bounds Read in __hw_addr_add_ex (4)

Status: upstream: reported on 2026/01/13 18:52
Subsystems: net
[Documentation on labels]
Reported-by: syzbot+9c081b17773615f24672@syzkaller.appspotmail.com
First crash: 13d, last: 13d
Discussions (2)
Title Replies (including bot) Last reply
[PATCH net] bonding: limit BOND_MODE_8023AD to Ethernet devices 2 (2) 2026/01/13 20:25
[syzbot] [net?] KASAN: global-out-of-bounds Read in __hw_addr_add_ex (4) 0 (1) 2026/01/13 18:52
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: global-out-of-bounds Read in __hw_addr_add_ex (2) net 17 C 461 289d 412d 0/29 auto-obsoleted due to no activity on 2025/06/22 22:53
upstream KASAN: global-out-of-bounds Read in __hw_addr_add_ex (3) net 17 1 128d 128d 0/29 auto-obsoleted due to no activity on 2025/12/29 05:05
upstream KMSAN: uninit-value in __hw_addr_add_ex net 17 580 869d 1152d 0/29 auto-obsoleted due to no activity on 2023/11/07 04:36
upstream KASAN: global-out-of-bounds Read in __hw_addr_add_ex net 17 193 530d 589d 0/29 auto-obsoleted due to no activity on 2024/10/10 19:31

Sample crash report:
netlink: 8 bytes leftover after parsing attributes in process `syz.1.3580'.
netlink: 4 bytes leftover after parsing attributes in process `syz.1.3580'.
8021q: adding VLAN 0 to HW filter on device bond1
8021q: adding VLAN 0 to HW filter on device bond0
==================================================================
BUG: KASAN: global-out-of-bounds in __hw_addr_create net/core/dev_addr_lists.c:63 [inline]
BUG: KASAN: global-out-of-bounds in __hw_addr_add_ex+0x25d/0x760 net/core/dev_addr_lists.c:118
Read of size 16 at addr ffffffff8bf94040 by task syz.1.3580/19497

CPU: 1 UID: 0 PID: 19497 Comm: syz.1.3580 Tainted: G             L      syzkaller #0 PREEMPT(full) 
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0xe8/0x150 lib/dump_stack.c:120
 print_address_description mm/kasan/report.c:378 [inline]
 print_report+0xca/0x240 mm/kasan/report.c:482
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:200
 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
 __hw_addr_create net/core/dev_addr_lists.c:63 [inline]
 __hw_addr_add_ex+0x25d/0x760 net/core/dev_addr_lists.c:118
 __dev_mc_add net/core/dev_addr_lists.c:868 [inline]
 dev_mc_add+0xa1/0x120 net/core/dev_addr_lists.c:886
 bond_enslave+0x2b8b/0x3ac0 drivers/net/bonding/bond_main.c:2180
 do_set_master+0x533/0x6d0 net/core/rtnetlink.c:2963
 do_setlink+0xcf0/0x41c0 net/core/rtnetlink.c:3165
 rtnl_changelink net/core/rtnetlink.c:3776 [inline]
 __rtnl_newlink net/core/rtnetlink.c:3935 [inline]
 rtnl_newlink+0x161c/0x1c90 net/core/rtnetlink.c:4072
 rtnetlink_rcv_msg+0x7cf/0xb70 net/core/rtnetlink.c:6958
 netlink_rcv_skb+0x208/0x470 net/netlink/af_netlink.c:2550
 netlink_unicast_kernel net/netlink/af_netlink.c:1318 [inline]
 netlink_unicast+0x82f/0x9e0 net/netlink/af_netlink.c:1344
 netlink_sendmsg+0x805/0xb30 net/netlink/af_netlink.c:1894
 sock_sendmsg_nosec net/socket.c:727 [inline]
 __sock_sendmsg+0x21c/0x270 net/socket.c:742
 ____sys_sendmsg+0x505/0x820 net/socket.c:2592
 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2646
 __sys_sendmsg+0x164/0x220 net/socket.c:2678
 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline]
 __do_fast_syscall_32+0x1dc/0x560 arch/x86/entry/syscall_32.c:307
 do_fast_syscall_32+0x34/0x80 arch/x86/entry/syscall_32.c:332
 entry_SYSENTER_compat_after_hwframe+0x84/0x8e
RIP: 0023:0xf7f54539
Code: 03 74 b4 01 10 07 03 74 b0 01 10 08 03 74 d8 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90
RSP: 002b:00000000f544655c EFLAGS: 00000206 ORIG_RAX: 0000000000000172
RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 0000000080000240
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 </TASK>

The buggy address belongs to the variable:
 lacpdu_mcast_addr+0x0/0x40

The buggy address belongs to the physical page:
page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0xbf94
flags: 0xfff00000002000(reserved|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000002000 ffffea00002fe508 ffffea00002fe508 0000000000000000
raw: 0000000000000000 0000000000000000 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner info is not present (never set?)

Memory state around the buggy address:
 ffffffff8bf93f00: 00 00 00 00 00 00 00 00 00 f9 f9 f9 f9 f9 f9 f9
 ffffffff8bf93f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffffffff8bf94000: 00 00 00 00 f9 f9 f9 f9 00 f9 f9 f9 00 00 00 00
                                              ^
 ffffffff8bf94080: 00 00 00 00 00 00 04 f9 f9 f9 f9 f9 00 f9 f9 f9
 ffffffff8bf94100: 00 00 06 f9 f9 f9 f9 f9 00 00 00 00 00 00 01 f9
==================================================================
----------------
Code disassembly (best guess):
   0:	03 74 b4 01          	add    0x1(%rsp,%rsi,4),%esi
   4:	10 07                	adc    %al,(%rdi)
   6:	03 74 b0 01          	add    0x1(%rax,%rsi,4),%esi
   a:	10 08                	adc    %cl,(%rax)
   c:	03 74 d8 01          	add    0x1(%rax,%rbx,8),%esi
  20:	00 51 52             	add    %dl,0x52(%rcx)
  23:	55                   	push   %rbp
  24:	89 e5                	mov    %esp,%ebp
  26:	0f 34                	sysenter
  28:	cd 80                	int    $0x80
* 2a:	5d                   	pop    %rbp <-- trapping instruction
  2b:	5a                   	pop    %rdx
  2c:	59                   	pop    %rcx
  2d:	c3                   	ret
  2e:	90                   	nop
  2f:	90                   	nop
  30:	90                   	nop
  31:	90                   	nop
  32:	90                   	nop
  33:	90                   	nop
  34:	90                   	nop
  35:	90                   	nop
  36:	90                   	nop
  37:	90                   	nop
  38:	90                   	nop
  39:	90                   	nop
  3a:	90                   	nop
  3b:	90                   	nop
  3c:	90                   	nop
  3d:	90                   	nop
  3e:	90                   	nop
  3f:	90                   	nop

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/31 12:10 upstream c8ebd433459b d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-386 KASAN: global-out-of-bounds Read in __hw_addr_add_ex
* Struck through repros no longer work on HEAD.