UDF-fs: error (device loop4): udf_process_sequence: Block 96 of volume descriptor sequence is corrupted or we could not read it ================================================================== BUG: KASAN: use-after-free in udf_get_fileident+0x1ea/0x200 fs/udf/directory.c:178 Read of size 2 at addr ffff888093b22494 by task syz-executor.4/10219 CPU: 0 PID: 10219 Comm: syz-executor.4 Not tainted 4.14.302-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x281 lib/dump_stack.c:58 print_address_description.cold+0x54/0x1d3 mm/kasan/report.c:252 kasan_report_error.cold+0x8a/0x191 mm/kasan/report.c:351 kasan_report mm/kasan/report.c:409 [inline] __asan_report_load_n_noabort+0x6b/0x80 mm/kasan/report.c:440 udf_get_fileident+0x1ea/0x200 fs/udf/directory.c:178 udf_fileident_read+0x4b9/0x1840 fs/udf/directory.c:36 udf_readdir+0x4d0/0x11f0 fs/udf/dir.c:129 iterate_dir+0x1a0/0x5e0 fs/readdir.c:52 SYSC_getdents64 fs/readdir.c:358 [inline] SyS_getdents64+0x125/0x230 fs/readdir.c:339 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x5e/0xd3 RIP: 0033:0x7f4efdcb20a9 RSP: 002b:00007f4efc224168 EFLAGS: 00000246 ORIG_RAX: 00000000000000d9 RAX: ffffffffffffffda RBX: 00007f4efddd1f80 RCX: 00007f4efdcb20a9 RDX: 00000000000000de RSI: 00000000200001c0 RDI: 0000000000000004 RBP: 00007f4efdd0dae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffde9a505ef R14: 00007f4efc224300 R15: 0000000000022000 Allocated by task 24: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 __do_kmalloc_node mm/slab.c:3682 [inline] __kmalloc_node_track_caller+0x4c/0x70 mm/slab.c:3696 __kmalloc_reserve net/core/skbuff.c:137 [inline] __alloc_skb+0x96/0x510 net/core/skbuff.c:205 alloc_skb include/linux/skbuff.h:980 [inline] ndisc_alloc_skb+0x134/0x310 net/ipv6/ndisc.c:402 ndisc_send_ns+0x12e/0x7c0 net/ipv6/ndisc.c:601 addrconf_dad_work+0x96f/0xef0 net/ipv6/addrconf.c:4012 process_one_work+0x793/0x14a0 kernel/workqueue.c:2117 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2251 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:406 Freed by task 24: save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xc3/0x1a0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xc9/0x250 mm/slab.c:3815 skb_free_head net/core/skbuff.c:563 [inline] skb_release_data+0x5f6/0x820 net/core/skbuff.c:583 skb_release_all net/core/skbuff.c:640 [inline] __kfree_skb net/core/skbuff.c:654 [inline] kfree_skb+0xe7/0x390 net/core/skbuff.c:672 ip6_mc_input+0x749/0x9e0 net/ipv6/ip6_input.c:414 dst_input include/net/dst.h:476 [inline] ip6_rcv_finish+0x240/0x770 net/ipv6/ip6_input.c:78 NF_HOOK include/linux/netfilter.h:250 [inline] ipv6_rcv+0xac7/0x1b60 net/ipv6/ip6_input.c:215 __netif_receive_skb_core+0x15ee/0x2a30 net/core/dev.c:4474 __netif_receive_skb+0x27/0x1a0 net/core/dev.c:4512 process_backlog+0x218/0x6f0 net/core/dev.c:5195 napi_poll net/core/dev.c:5604 [inline] net_rx_action+0x466/0xfd0 net/core/dev.c:5670 __do_softirq+0x24d/0x9ff kernel/softirq.c:288 The buggy address belongs to the object at ffff888093b222c0 which belongs to the cache kmalloc-512 of size 512 The buggy address is located 468 bytes inside of 512-byte region [ffff888093b222c0, ffff888093b224c0) The buggy address belongs to the page: page:ffffea00024ec880 count:1 mapcount:0 mapping:ffff888093b22040 index:0xffff888093b22a40 flags: 0xfff00000000100(slab) raw: 00fff00000000100 ffff888093b22040 ffff888093b22a40 0000000100000003 raw: ffffea0002d0f120 ffffea0002ae9320 ffff88813fe74940 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888093b22380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888093b22400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888093b22480: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ^ ffff888093b22500: fc fc fc fc fc fc fc fc 00 00 00 00 00 00 00 00 ffff888093b22580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================