syzbot
WARNING: refcount bug in subflow_ulp_release (2)
Status:
upstream: reported on 2026/10/30 22:18
Reported-by: syzbot+573bd56cb698af6d34f0@syzkaller.appspotmail.com
First crash: 25d, last: 25d
Sample crash report:
IN= OUT=lo SRC=127.0.0.1 DST=127.0.0.1 LEN=56 TOS=0x00 PREC=0x00 TTL=64 ID=4959 DF PROTO=TCP SPT=20002 DPT=59926 WINDOW=512 RES=0x00 ACK RST URGP=0
------------[ cut here ]------------
refcount_t: underflow; use-after-free.
WARNING: CPU: 0 PID: 15273 at lib/refcount.c:28 refcount_warn_saturate+0x11b/0x1a0 lib/refcount.c:28
Modules linked in:
CPU: 0 PID: 15273 Comm: syz.9.2544 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/07/2026
RIP: 0010:refcount_warn_saturate+0x11b/0x1a0 lib/refcount.c:28
Code: 0a 01 48 c7 c7 60 12 7a 8a e8 a1 07 d5 05 0f 0b eb c4 e8 58 ab 8f fd c6 05 87 e5 6f 0a 01 48 c7 c7 c0 12 7a 8a e8 85 07 d5 05 <0f> 0b eb a8 e8 3c ab 8f fd c6 05 68 e5 6f 0a 01 48 c7 c7 00 12 7a
RSP: 0018:ffffc90002fdf9d8 EFLAGS: 00010246
RAX: d7933caea5e74900 RBX: 0000000000000003 RCX: ffff88801ed21dc0
RDX: 0000000000000000 RSI: 0000000000000201 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff9104715f R09: 1ffffffff2208e2b
R10: dffffc0000000000 R11: fffffbfff2208e2c R12: ffff888079305e80
R13: dffffc0000000000 R14: 0000000000000003 R15: ffff888079305e00
FS: 000055555bbaa500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffcc8055078 CR3: 000000001c8b1000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 000000000000003c
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
__refcount_sub_and_test include/linux/refcount.h:283 [inline]
__refcount_dec_and_test include/linux/refcount.h:315 [inline]
refcount_dec_and_test include/linux/refcount.h:333 [inline]
sock_put include/net/sock.h:1989 [inline]
subflow_ulp_release+0x24d/0x290 net/mptcp/subflow.c:1764
tcp_cleanup_ulp+0x6e/0xe0 net/ipv4/tcp_ulp.c:124
tcp_v4_destroy_sock+0x177/0x6e0 net/ipv4/tcp_ipv4.c:2307
inet_csk_destroy_sock+0x15c/0x350 net/ipv4/inet_connection_sock.c:1063
inet_csk_listen_stop+0x323/0xc20 net/ipv4/inet_connection_sock.c:1296
__tcp_close+0x99/0xf10 net/ipv4/tcp.c:2763
__mptcp_close_ssk+0x1ea/0x460 net/mptcp/protocol.c:2384
__mptcp_destroy_sock+0x255/0x590 net/mptcp/protocol.c:2812
mptcp_close+0x561/0x860 net/mptcp/protocol.c:2869
inet_release+0x139/0x180 net/ipv4/af_inet.c:432
__sock_release net/socket.c:651 [inline]
sock_close+0xbf/0x210 net/socket.c:1346
__fput+0x212/0x8c0 fs/file_table.c:311
task_work_run+0x125/0x1a0 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:184
exit_to_user_mode_prepare+0xee/0x180 kernel/entry/common.c:217
__syscall_exit_to_user_mode_work kernel/entry/common.c:299 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:310
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7efd6584d559
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffe827d33c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007efd65ad5da0 RCX: 00007efd6584d559
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007efd65ad5da0 R08: 0000000000000006 R09: 0000000000000000
R10: 00007efd65ad5cb0 R11: 0000000000000246 R12: 0000000000158f48
R13: 00007efd65ad409c R14: 0000000000158c87 R15: 00007efd65ad4090
</TASK>
* Struck through repros no longer work on HEAD.