D Dmitry Vyukov #
Message details and related content
Hello, While running syzkaller fuzzer I've hit the following use-after-free: ================================================================== BUG: KASAN: use-after-free in __sys_recvmmsg+0x6fa/0x7f0 at addr ffff88003b689ce0 Read of size 8 by task syz-executor/11997 ============================================================================= BUG sock_inode_cache (Not tainted): kasan: bad access detected ----------------------------------------------------------------------------- INFO: Allocated in sock_alloc_inode+0x1d/0x250 age=125 cpu=1 pid=11960 [< none >] ___slab_alloc+0x4c2/0x500 mm/slub.c:2470 [< none >] __slab_alloc+0x66/0xc0 mm/slub.c:2499 [< inline >] slab_alloc_node mm/slub.c:2562 [< inline >] slab_alloc mm/slub.c:2604 [< none >] kmem_cache_alloc+0x257/0x2d0 mm/slub.c:2609 [< none >] sock_alloc_inode+0x1d/0x250 net/socket.c:250 [< none >] alloc_inode+0x61/0x180 fs/inode.c:198 [< none >] new_inode_pseudo+0x17/0xe0 fs/inode.c:878 [< none >] sock_alloc+0x3d/0x260 net/socket.c:541 [< none >] __sock_create+0xa7/0x640 net/socket.c:1127 [< inline >] sock_create net/socket.c:1203 [< inline >] SYSC_socketpair net/socket.c:1275 [< none >] SyS_socketpair+0x112/0x4e0 net/socket.c:1254 [< none >] entry_SYSCALL_64_fastpath+0x16/0x7a arch/x86/entry/entry_64.S:185 INFO: Freed in sock_destroy_inode+0x56/0x70 age=25 cpu=1 pid=11960 [< none >] __slab_free+0x1fc/0x320 mm/slub.c:2680 [< inline >] slab_free mm/slub.c:2835 [< none >] kmem_cache_free+0x2ec/0x370 mm/slub.c:2844 [< none >] sock_destroy_inode+0x56/0x70 net/socket.c:280 [< none >] destroy_inode+0xc7/0x130 fs/inode.c:255 [< none >] evict+0x329/0x500 fs/inode.c:559 [< inline >] iput_final fs/inode.c:1477 [< none >] iput+0x45f/0x860 fs/inode.c:1504 [< inline >] dentry_iput fs/dcache.c:358 [< none >] __dentry_kill+0x457/0x620 fs/dcache.c:543