R13: 00000000004c70a7 R14: 00000000004dc768 R15: 0000000000000007 dccp_parse_options: DCCP(0000000060952452): Option 32 (len=7) error=9 ================================================================== BUG: KASAN: use-after-free in ccid2_hc_tx_packet_recv+0x21ca/0x223b net/dccp/ccids/ccid2.c:587 Read of size 1 at addr ffff88805b8368e2 by task syz-executor.4/30834 CPU: 0 PID: 30834 Comm: syz-executor.4 Not tainted 5.3.0-rc8+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0xd4/0x306 mm/kasan/report.c:351 __kasan_report.cold+0x1b/0x36 mm/kasan/report.c:482 kasan_report+0x12/0x17 mm/kasan/common.c:618 __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:129 ccid2_hc_tx_packet_recv+0x21ca/0x223b net/dccp/ccids/ccid2.c:587 ccid_hc_tx_packet_recv net/dccp/ccid.h:189 [inline] dccp_deliver_input_to_ccids+0x1f8/0x270 net/dccp/input.c:182 dccp_rcv_established net/dccp/input.c:374 [inline] dccp_rcv_established+0x83/0xb0 net/dccp/input.c:364 dccp_v4_do_rcv+0x139/0x190 net/dccp/ipv4.c:655 sk_backlog_rcv include/net/sock.h:945 [inline] __release_sock+0x129/0x390 net/core/sock.c:2427 release_sock+0x59/0x1c0 net/core/sock.c:2943 dccp_sendmsg+0x69c/0xd30 net/dccp/proto.c:814 inet_sendmsg+0x9e/0xe0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg net/socket.c:2439 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x4598e9 Code: fd b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 cb b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f203f4a1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000133 RAX: ffffffffffffffda RBX: 00007f203f4a1c90 RCX: 00000000004598e9 RDX: 04000000000001e6 RSI: 0000000020000c00 RDI: 0000000000000005 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f203f4a26d4 R13: 00000000004c70a7 R14: 00000000004dc768 R15: 0000000000000007 Allocated by task 30834: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:493 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:466 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:507 __do_kmalloc_node mm/slab.c:3615 [inline] __kmalloc_node_track_caller+0x4e/0x70 mm/slab.c:3629 __kmalloc_reserve.isra.0+0x40/0xf0 net/core/skbuff.c:141 __alloc_skb+0x10b/0x5e0 net/core/skbuff.c:209 alloc_skb include/linux/skbuff.h:1055 [inline] dccp_send_ack+0xd6/0x360 net/dccp/output.c:576 ccid2_hc_rx_packet_recv+0x139/0x1b0 net/dccp/ccids/ccid2.c:766 ccid_hc_rx_packet_recv net/dccp/ccid.h:182 [inline] dccp_deliver_input_to_ccids+0xeb/0x270 net/dccp/input.c:176 dccp_rcv_established net/dccp/input.c:374 [inline] dccp_rcv_established+0x83/0xb0 net/dccp/input.c:364 dccp_v4_do_rcv+0x139/0x190 net/dccp/ipv4.c:655 sk_backlog_rcv include/net/sock.h:945 [inline] __sk_receive_skb+0x335/0xbb0 net/core/sock.c:522 dccp_v4_rcv+0xeaa/0x1b64 net/dccp/ipv4.c:876 ip_protocol_deliver_rcu+0x5a/0x8b0 net/ipv4/ip_input.c:204 ip_local_deliver_finish+0x23b/0x390 net/ipv4/ip_input.c:231 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_local_deliver+0x1e9/0x520 net/ipv4/ip_input.c:252 dst_input include/net/dst.h:442 [inline] ip_rcv_finish+0x1d9/0x2e0 net/ipv4/ip_input.c:413 NF_HOOK include/linux/netfilter.h:305 [inline] NF_HOOK include/linux/netfilter.h:299 [inline] ip_rcv+0xe8/0x3f0 net/ipv4/ip_input.c:523 __netif_receive_skb_one_core+0x113/0x1a0 net/core/dev.c:5004 __netif_receive_skb+0x2c/0x1d0 net/core/dev.c:5118 process_backlog+0x206/0x750 net/core/dev.c:5929 napi_poll net/core/dev.c:6352 [inline] net_rx_action+0x4d6/0x1030 net/core/dev.c:6418 __do_softirq+0x262/0x98c kernel/softirq.c:292 Freed by task 30834: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:455 kasan_slab_free+0xe/0x10 mm/kasan/common.c:463 __cache_free mm/slab.c:3425 [inline] kfree+0x10a/0x2c0 mm/slab.c:3756 skb_free_head+0x93/0xb0 net/core/skbuff.c:591 skb_release_data+0x42d/0x7c0 net/core/skbuff.c:611 skb_release_all+0x4d/0x60 net/core/skbuff.c:665 __kfree_skb net/core/skbuff.c:679 [inline] kfree_skb net/core/skbuff.c:697 [inline] kfree_skb+0x101/0x3c0 net/core/skbuff.c:691 dccp_v4_do_rcv net/dccp/ipv4.c:690 [inline] dccp_v4_do_rcv+0x160/0x190 net/dccp/ipv4.c:650 sk_backlog_rcv include/net/sock.h:945 [inline] __release_sock+0x129/0x390 net/core/sock.c:2427 release_sock+0x59/0x1c0 net/core/sock.c:2943 dccp_sendmsg+0x69c/0xd30 net/dccp/proto.c:814 inet_sendmsg+0x9e/0xe0 net/ipv4/af_inet.c:807 sock_sendmsg_nosec net/socket.c:637 [inline] sock_sendmsg+0xd7/0x130 net/socket.c:657 ___sys_sendmsg+0x3e2/0x920 net/socket.c:2311 __sys_sendmmsg+0x1bf/0x4d0 net/socket.c:2413 __do_sys_sendmmsg net/socket.c:2442 [inline] __se_sys_sendmmsg net/socket.c:2439 [inline] __x64_sys_sendmmsg+0x9d/0x100 net/socket.c:2439 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88805b836440 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 1186 bytes inside of 2048-byte region [ffff88805b836440, ffff88805b836c40) The buggy address belongs to the page: page:ffffea00016e0d80 refcount:1 mapcount:0 mapping:ffff8880aa400e00 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea000176bb08 ffffea00023f9c88 ffff8880aa400e00 raw: 0000000000000000 ffff88805b836440 0000000100000003 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88805b836780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805b836800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805b836880: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88805b836900: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805b836980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================