==================================================================
BUG: KASAN: use-after-free in sctp_stream_free_ext+0x78/0x130
Read of size 8 at addr ffff88811c6f1008 by task syz.1.7812/28590

CPU: 0 UID: 0 PID: 28590 Comm: syz.1.7812 Not tainted 6.17.0-rc1-syzkaller-00207-g815957293639-dirty #0 PREEMPT(full) 
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-debian-1.16.2-1 04/01/2014
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250
 print_report+0xca/0x240
 kasan_report+0x118/0x150
 sctp_stream_free_ext+0x78/0x130
 sctp_stream_free+0x8f/0x110
 sctp_association_free+0x26d/0x7f0
 sctp_do_sm+0x3eba/0x5a20
 sctp_primitive_SHUTDOWN+0x98/0xc0
 sctp_close+0x409/0x900
 inet_release+0x144/0x190
 sock_close+0xc3/0x240
 __fput+0x44c/0xa70
 task_work_run+0x1d4/0x260
 get_signal+0x11ed/0x1340
 arch_do_signal_or_restart+0x9a/0x750
 exit_to_user_mode_loop+0x75/0x110
 do_syscall_64+0x2bd/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fb06c78ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb06a9f6038 EFLAGS: 00000246 ORIG_RAX: 000000000000002c
RAX: 0000000000000001 RBX: 00007fb06c9b5fa0 RCX: 00007fb06c78ebe9
RDX: 0000000000000001 RSI: 0000200000000580 RDI: 000000000000000e
RBP: 00007fb06c811e19 R08: 0000200000000280 R09: 000000000000001c
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb06c9b6038 R14: 00007fb06c9b5fa0 R15: 00007ffe22f91df8
 </TASK>

The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0xffffffffffffffff pfn:0x11c6f1
flags: 0x57ff00000000000(node=1|zone=2|lastcpupid=0x7ff)
raw: 057ff00000000000 0000000000000000 00000000ffffffff 0000000000000000
raw: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 3, migratetype Unmovable, gfp_mask 0x40dc0(GFP_KERNEL|__GFP_ZERO|__GFP_COMP), pid 22174, tgid 22173 (syz.0.5587), ts 351401011728, free_ts 351455424507
 post_alloc_hook+0x240/0x2a0
 get_page_from_freelist+0x21e4/0x22c0
 __alloc_frozen_pages_noprof+0x181/0x370
 alloc_pages_mpol+0x232/0x4a0
 ___kmalloc_large_node+0x5f/0x1b0
 __kmalloc_large_node_noprof+0x18/0x90
 __kmalloc_noprof+0x36f/0x4f0
 sk_prot_alloc+0xe7/0x220
 sk_alloc+0x3a/0x370
 can_create+0x1ca/0x5a0
 __sock_create+0x4b3/0x9f0
 __sys_socket+0xd7/0x1b0
 __x64_sys_socket+0x7a/0x90
 do_syscall_64+0xfa/0x3b0
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 15 tgid 15 stack trace:
 __free_frozen_pages+0xbc4/0xd30
 free_large_kmalloc+0x13a/0x1f0
 __sk_destruct+0x4e1/0x660
 rcu_core+0xcab/0x1770
 handle_softirqs+0x286/0x870
 run_ksoftirqd+0x9b/0x100
 smpboot_thread_fn+0x542/0xa60
 kthread+0x711/0x8a0
 ret_from_fork+0x3fc/0x770
 ret_from_fork_asm+0x1a/0x30

Memory state around the buggy address:
 ffff88811c6f0f00: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88811c6f0f80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff88811c6f1000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
                      ^
 ffff88811c6f1080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
 ffff88811c6f1100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
