Hello,
syzbot found the following issue on:
HEAD commit: fb28aa725e05 Linux 6.1.180
git tree: linux-6.1.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=16ef0649580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=872c04466179833f
dashboard link:
https://syzkaller.appspot.com/bug?extid=6084c26543ba220c97d5
compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8
userspace arch: arm64
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/d420eb944682/disk-fb28aa72.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/affae450ab23/vmlinux-fb28aa72.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/b9e6919ed519/Image-fb28aa72.gz.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+6084c2...@syzkaller.appspotmail.com
------------[ cut here ]------------
WARNING: CPU: 0 PID: 4580 at net/tls/tls_strp.c:493 tls_strp_msg_load+0x5ac/0x82c net/tls/tls_strp.c:493
Modules linked in:
CPU: 0 PID: 4580 Comm: syz.3.35 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : tls_strp_msg_load+0x5ac/0x82c net/tls/tls_strp.c:493
lr : tls_strp_msg_load+0x5ac/0x82c net/tls/tls_strp.c:493
sp : ffff800021c174c0
x29: ffff800021c17540 x28: 1fffe0001ea58a9b x27: 1fffe0001ea58a9b
x26: ffff700004382e9c x25: dfff800000000000 x24: ffff0000f52c54dc
x23: 0000000000000000 x22: 000000000000001e x21: ffff0000cd60bda0
x20: ffff0000f52c54d0 x19: ffff0000f52c54d8 x18: 0000000000000000
x17: 0000000000000000 x16: ffff800011b90080 x15: 0000000000000002
x14: 0000000000000002 x13: 1ffff00004382f06 x12: 0000000000080000
x11: 0000000000000273 x10: ffff8000261a9000 x9 : ffff8000108900fc
x8 : 0000000000000274 x7 : 0000000000000000 x6 : ffff800021c177fc
x5 : 0000000000000001 x4 : 0000000000000000 x3 : 0000000000000001
x2 : 0000000000000000 x1 : 000000000000001e x0 : 0000000000000000
Call trace:
tls_strp_msg_load+0x5ac/0x82c net/tls/tls_strp.c:493
tls_rx_rec_wait+0x784/0x8c0 net/tls/tls_sw.c:1513
tls_sw_recvmsg+0x554/0x181c net/tls/tls_sw.c:2170
inet_recvmsg+0x118/0x1c8 net/ipv4/af_inet.c:890
____sys_recvmsg+0x270/0x754 net/socket.c:-1
___sys_recvmsg net/socket.c:2780 [inline]
__sys_recvmsg+0x250/0x33c net/socket.c:2810
__do_sys_recvmsg net/socket.c:2820 [inline]
__se_sys_recvmsg net/socket.c:2817 [inline]
__arm64_sys_recvmsg+0x80/0x94 net/socket.c:2817
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 948
hardirqs last enabled at (947): [<ffff8000081ad57c>] __local_bh_enable_ip+0x1f8/0x37c kernel/softirq.c:426
hardirqs last disabled at (948): [<ffff800011b8c2bc>] el1_dbg+0x24/0x80 arch/arm64/kernel/entry-common.c:405
softirqs last enabled at (946): [<ffff80000fe92ffc>] spin_unlock_bh include/linux/spinlock.h:396 [inline]
softirqs last enabled at (946): [<ffff80000fe92ffc>] lock_sock_nested+0xe0/0x130 net/core/sock.c:3512
softirqs last disabled at (944): [<ffff80000fe92fa4>] spin_lock_bh include/linux/spinlock.h:356 [inline]
softirqs last disabled at (944): [<ffff80000fe92fa4>] lock_sock_nested+0x88/0x130 net/core/sock.c:3508
---[ end trace 0000000000000000 ]---
==================================================================
BUG: KASAN: use-after-free in __skb_nsg+0x474/0x504 net/tls/tls_sw.c:126
Read of size 4 at addr ffff0000e09d17e0 by task syz.3.35/4580
CPU: 0 PID: 4580 Comm: syz.3.35 Tainted: G W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
Call trace:
dump_backtrace+0x1c4/0x1f0 arch/arm64/kernel/stacktrace.c:158
show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:165
__dump_stack+0x30/0x40 lib/dump_stack.c:88
dump_stack_lvl+0xf4/0x15c lib/dump_stack.c:106
print_address_description+0x88/0x218 mm/kasan/report.c:316
print_report+0x50/0x68 mm/kasan/report.c:420
kasan_report+0xa8/0xfc mm/kasan/report.c:524
__asan_report_load4_noabort+0x2c/0x38 mm/kasan/report_generic.c:350
__skb_nsg+0x474/0x504 net/tls/tls_sw.c:126
skb_nsg net/tls/tls_sw.c:153 [inline]
tls_decrypt_sg+0x268/0x27c8 net/tls/tls_sw.c:1636
tls_decrypt_sw+0xb8/0x9e0 net/tls/tls_sw.c:1798
tls_rx_one_record+0x164/0xc18 net/tls/tls_sw.c:1889
tls_sw_recvmsg+0x7e8/0x181c net/tls/tls_sw.c:2202
inet_recvmsg+0x118/0x1c8 net/ipv4/af_inet.c:890
____sys_recvmsg+0x270/0x754 net/socket.c:-1
___sys_recvmsg net/socket.c:2780 [inline]
__sys_recvmsg+0x250/0x33c net/socket.c:2810
__do_sys_recvmsg net/socket.c:2820 [inline]
__se_sys_recvmsg net/socket.c:2817 [inline]
__arm64_sys_recvmsg+0x80/0x94 net/socket.c:2817
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Allocated by task 4583:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_alloc_info+0x24/0x30 mm/kasan/generic.c:505
__kasan_slab_alloc+0x70/0x88 mm/kasan/common.c:329
kasan_slab_alloc include/linux/kasan.h:201 [inline]
slab_post_alloc_hook+0x74/0x430 mm/slab.h:737
slab_alloc_node mm/slub.c:3359 [inline]
kmem_cache_alloc_node+0x258/0x344 mm/slub.c:3404
__alloc_skb+0x128/0x728 net/core/skbuff.c:505
alloc_skb_fclone include/linux/skbuff.h:1353 [inline]
tcp_stream_alloc_skb+0x48/0x2d8 net/ipv4/tcp.c:873
tcp_build_frag net/ipv4/tcp.c:998 [inline]
do_tcp_sendpages+0x798/0x22dc net/ipv4/tcp.c:1087
tls_push_sg+0x128/0x6e4 net/tls/tls_main.c:150
tls_tx_records+0x2bc/0x4b8 net/tls/tls_sw.c:445
tls_push_record+0x1860/0x2d78 net/tls/tls_sw.c:865
bpf_exec_tx_verdict+0xc88/0x1258 net/tls/tls_sw.c:885
tls_sw_sendmsg+0xabc/0x14d4 net/tls/tls_sw.c:1120
inet_sendmsg+0x154/0x27c net/ipv4/af_inet.c:841
sock_sendmsg_nosec net/socket.c:718 [inline]
__sock_sendmsg net/socket.c:730 [inline]
____sys_sendmsg+0x588/0x90c net/socket.c:2519
___sys_sendmsg net/socket.c:2573 [inline]
__sys_sendmsg+0x288/0x374 net/socket.c:2602
__do_sys_sendmsg net/socket.c:2611 [inline]
__se_sys_sendmsg net/socket.c:2609 [inline]
__arm64_sys_sendmsg+0x80/0x94 net/socket.c:2609
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Freed by task 4580:
kasan_save_stack mm/kasan/common.c:46 [inline]
kasan_set_track+0x4c/0x80 mm/kasan/common.c:53
kasan_save_free_info+0x38/0x5c mm/kasan/generic.c:516
____kasan_slab_free+0x148/0x1b0 mm/kasan/common.c:237
__kasan_slab_free+0x18/0x28 mm/kasan/common.c:245
kasan_slab_free include/linux/kasan.h:177 [inline]
slab_free_hook mm/slub.c:1729 [inline]
slab_free_freelist_hook+0x16c/0x1e8 mm/slub.c:1755
slab_free mm/slub.c:3687 [inline]
kmem_cache_free+0x118/0x318 mm/slub.c:3709
kfree_skbmem+0x10c/0x198 net/core/skbuff.c:-1
__kfree_skb net/core/skbuff.c:871 [inline]
skb_attempt_defer_free+0x268/0x40c net/core/skbuff.c:6714
tcp_eat_recv_skb net/ipv4/tcp.c:1665 [inline]
tcp_recvmsg_locked+0xd6c/0x1c1c net/ipv4/tcp.c:2678
tcp_recvmsg+0x194/0x67c net/ipv4/tcp.c:2724
inet_recvmsg+0x118/0x1c8 net/ipv4/af_inet.c:890
sock_recvmsg_nosec net/socket.c:1023 [inline]
sock_recvmsg net/socket.c:1041 [inline]
sock_read_iter+0x26c/0x324 net/socket.c:1122
do_iter_readv_writev fs/read_write.c:-1 [inline]
do_iter_read+0x4d4/0x8b4 fs/read_write.c:796
vfs_readv fs/read_write.c:916 [inline]
do_readv+0x1f8/0x3c4 fs/read_write.c:953
__do_sys_readv fs/read_write.c:1044 [inline]
__se_sys_readv fs/read_write.c:1041 [inline]
__arm64_sys_readv+0x80/0x94 fs/read_write.c:1041
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
The buggy address belongs to the object at ffff0000e09d1680
which belongs to the cache skbuff_fclone_cache of size 488
The buggy address is located 352 bytes inside of
488-byte region [ffff0000e09d1680, ffff0000e09d1868)
The buggy address belongs to the physical page:
page:00000000837eab5f refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1209d0
head:00000000837eab5f order:1 compound_mapcount:0 compound_pincount:0
flags: 0x5ffc00000010200(slab|head|node=0|zone=2|lastcpupid=0x7ff)
raw: 05ffc00000010200 fffffc0003824a80 dead000000000006 ffff0000c0864300
raw: 0000000000000000 00000000800c000c 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff0000e09d1680: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff0000e09d1700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
>ffff0000e09d1780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
^
ffff0000e09d1800: fb fb fb fb fb fb fb fb fb fb fb fb fb fc fc fc
ffff0000e09d1880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
------------[ cut here ]------------
WARNING: CPU: 1 PID: 4580 at net/core/skbuff.c:4603 __skb_to_sgvec+0x540/0x900 net/core/skbuff.c:4603
Modules linked in:
CPU: 1 PID: 4580 Comm: syz.3.35 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 82400005 (Nzcv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : __skb_to_sgvec+0x540/0x900 net/core/skbuff.c:4603
lr : __skb_to_sgvec+0x540/0x900 net/core/skbuff.c:4603
sp : ffff800021c17120
x29: ffff800021c17170 x28: 1fffe00019d9d181 x27: ffff0000d6175508
x26: dfff800000000000 x25: ffff0000cece8c10 x24: 0000000000000000
x23: 000000000000000d x22: ffff0000cece8c0c x21: 0000000000000000
x20: 00000000fffffff1 x19: 00000000ffffffe4 x18: 1fffe00033e7697e
x17: 0000000000fe010c x16: ffff800011b90080 x15: 0000000000000002
x14: 0000000000000008 x13: 1fffe0001ac2ea9d x12: 0000000000080000
x11: 00000000000509bf x10: ffff8000261a9000 x9 : ffff80000feb61f8
x8 : 00000000000509c0 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff0000d61754a0 x4 : 0000000000000000 x3 : 00000000ffffffe4
x2 : 000000000000000d x1 : 00000000fffffff1 x0 : 0000000000000000
Call trace:
__skb_to_sgvec+0x540/0x900 net/core/skbuff.c:4603
skb_to_sgvec+0x40/0xb4 net/core/skbuff.c:4664
tls_decrypt_sg+0xe6c/0x27c8 net/tls/tls_sw.c:1727
tls_decrypt_sw+0xb8/0x9e0 net/tls/tls_sw.c:1798
tls_rx_one_record+0x164/0xc18 net/tls/tls_sw.c:1889
tls_sw_recvmsg+0x7e8/0x181c net/tls/tls_sw.c:2202
inet_recvmsg+0x118/0x1c8 net/ipv4/af_inet.c:890
____sys_recvmsg+0x270/0x754 net/socket.c:-1
___sys_recvmsg net/socket.c:2780 [inline]
__sys_recvmsg+0x250/0x33c net/socket.c:2810
__do_sys_recvmsg net/socket.c:2820 [inline]
__se_sys_recvmsg net/socket.c:2817 [inline]
__arm64_sys_recvmsg+0x80/0x94 net/socket.c:2817
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
irq event stamp: 1527
hardirqs last enabled at (1527): [<ffff800011b8e264>] __exit_to_kernel_mode arch/arm64/kernel/entry-common.c:84 [inline]
hardirqs last enabled at (1527): [<ffff800011b8e264>] exit_to_kernel_mode+0xcc/0xfc arch/arm64/kernel/entry-common.c:94
hardirqs last disabled at (1526): [<ffff800011b8c3ac>] __el1_irq arch/arm64/kernel/entry-common.c:468 [inline]
hardirqs last disabled at (1526): [<ffff800011b8c3ac>] el1_interrupt+0x24/0x54 arch/arm64/kernel/entry-common.c:486
softirqs last enabled at (1170): [<ffff8000081ae3bc>] softirq_handle_end kernel/softirq.c:439 [inline]
softirqs last enabled at (1170): [<ffff8000081ae3bc>] handle_softirqs+0xb1c/0xc90 kernel/softirq.c:624
softirqs last disabled at (951): [<ffff800008020e6c>] __do_softirq+0x14/0x20 kernel/softirq.c:630
---[ end trace 0000000000000000 ]---
------------[ cut here ]------------
kernel BUG at net/core/skbuff.c:4646!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4580 Comm: syz.3.35 Tainted: G B W syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/02/2026
pstate: 62400005 (nZCv daif +PAN -UAO +TCO -DIT -SSBS BTYPE=--)
pc : __skb_to_sgvec+0x8fc/0x900 net/core/skbuff.c:4646
lr : __skb_to_sgvec+0x8fc/0x900 net/core/skbuff.c:4646
sp : ffff800021c17120
x29: ffff800021c17170 x28: 1fffe00019d9d181 x27: ffff0000d6175508
x26: dfff800000000000 x25: 0000000000000000 x24: 0000000000000000
x23: 000000000000000d x22: ffff0000cece8c0c x21: 0000000000000001
x20: ffff0000d61774c0 x19: 00000000ffffffe4 x18: 1fffe00033e7697e
x17: 0000000000fe010c x16: ffff800011b90080 x15: 0000000000000002
x14: 0000000000000008 x13: 1fffe0001ac2ea9d x12: 0000000000080000
x11: 000000000007ffff x10: ffff8000261a9000 x9 : ffff80000feb65b4
x8 : 0000000000080000 x7 : 0000000000000000 x6 : 0000000000000000
x5 : ffff0000d61754a0 x4 : 0000000000000000 x3 : 00000000ffffffe4
x2 : 000000000000000d x1 : 00000000ffffffe4 x0 : 0000000000000000
Call trace:
__skb_to_sgvec+0x8fc/0x900 net/core/skbuff.c:4646
skb_to_sgvec+0x40/0xb4 net/core/skbuff.c:4664
tls_decrypt_sg+0xe6c/0x27c8 net/tls/tls_sw.c:1727
tls_decrypt_sw+0xb8/0x9e0 net/tls/tls_sw.c:1798
tls_rx_one_record+0x164/0xc18 net/tls/tls_sw.c:1889
tls_sw_recvmsg+0x7e8/0x181c net/tls/tls_sw.c:2202
inet_recvmsg+0x118/0x1c8 net/ipv4/af_inet.c:890
____sys_recvmsg+0x270/0x754 net/socket.c:-1
___sys_recvmsg net/socket.c:2780 [inline]
__sys_recvmsg+0x250/0x33c net/socket.c:2810
__do_sys_recvmsg net/socket.c:2820 [inline]
__se_sys_recvmsg net/socket.c:2817 [inline]
__arm64_sys_recvmsg+0x80/0x94 net/socket.c:2817
__invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
invoke_syscall+0x98/0x290 arch/arm64/kernel/syscall.c:52
el0_svc_common+0x13c/0x258 arch/arm64/kernel/syscall.c:140
do_el0_svc+0x5c/0x134 arch/arm64/kernel/syscall.c:204
el0_svc+0x58/0x128 arch/arm64/kernel/entry-common.c:637
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: d4210000 9617f187 d4210000 9617f185 (d4210000)
---[ end trace 0000000000000000 ]---
---
This report is generated by a bot. It may contain errors.
See
https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at
syzk...@googlegroups.com.
syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.
If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title
If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)
If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report
If you want to undo deduplication, reply with:
#syz undup