==================================================================
BUG: KASAN: use-after-free in pn533_acr122_is_rx_frame_valid drivers/nfc/pn533/usb.c:325 [inline]
BUG: KASAN: use-after-free in pn533_acr122_is_rx_frame_valid+0x132/0x150 drivers/nfc/pn533/usb.c:315
Read of size 1 at addr ffff888135ccb415 by task udevd/5501
CPU: 0 UID: 0 PID: 5501 Comm: udevd Not tainted syzkaller #0 PREEMPT(lazy)
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
__dump_stack lib/dump_stack.c:94 [inline]
dump_stack_lvl+0x100/0x190 lib/dump_stack.c:120
print_address_description mm/kasan/report.c:378 [inline]
print_report+0x13d/0x4b0 mm/kasan/report.c:482
kasan_report+0xdf/0x1c0 mm/kasan/report.c:595
pn533_acr122_is_rx_frame_valid drivers/nfc/pn533/usb.c:325 [inline]
pn533_acr122_is_rx_frame_valid+0x132/0x150 drivers/nfc/pn533/usb.c:315
pn533_recv_frame+0x1b7/0x6d0 drivers/nfc/pn533/pn533.c:2203
__usb_hcd_giveback_urb+0x38e/0x610 drivers/usb/core/hcd.c:1657
usb_hcd_giveback_urb+0x3ca/0x4a0 drivers/usb/core/hcd.c:1741
dummy_timer+0xdb2/0x3700 drivers/usb/gadget/udc/dummy_hcd.c:2019
__run_hrtimer kernel/time/hrtimer.c:2067 [inline]
__hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2124
hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2141
handle_softirqs+0x1d9/0x9b0 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0x168/0x210 kernel/softirq.c:758
irq_exit_rcu+0x9/0x30 kernel/softirq.c:775
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1062 [inline]
sysvec_apic_timer_interrupt+0x8f/0xb0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:rcu_read_lock_held+0x0/0x50 kernel/rcu/update.c:346
Code: 4c 24 10 4c 8b 44 24 08 e9 65 fc ff ff 66 66 2e 0f 1f 84 00 00 00 00 00 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1e fa e8 77 dd ef 05 ba 01 00 00 00 85 c0 75 07 89 d0 e9 d7
RSP: 0018:ffffc90002b67ab0 EFLAGS: 00000293
RAX: 0000000000000000 RBX: ffff8881012f2780 RCX: 0000000000000000
RDX: ffff888112d1dac0 RSI: ffffffff82522479 RDI: ffff888112d1dac0
RBP: ffff888102af1000 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000001
R13: ffff888102af1000 R14: ffff8881012f2780 R15: ffffffff87fcf6c0
kernfs_root+0x20e/0x2a0 fs/kernfs/kernfs-internal.h:77
kernfs_root_is_locked fs/kernfs/kernfs-internal.h:110 [inline]
kernfs_rcu_name fs/kernfs/kernfs-internal.h:120 [inline]
kernfs_dop_revalidate+0x63c/0x7e0 fs/kernfs/dir.c:1229
d_revalidate fs/namei.c:1035 [inline]
d_revalidate fs/namei.c:1031 [inline]
lookup_fast+0x3c7/0x600 fs/namei.c:1881
walk_component fs/namei.c:2278 [inline]
link_path_walk+0x7d4/0x1cc0 fs/namei.c:2656
path_lookupat+0x74/0xc40 fs/namei.c:2812
filename_lookup+0x202/0x590 fs/namei.c:2842
do_readlinkat+0xd3/0x370 fs/stat.c:571
__do_sys_readlink fs/stat.c:605 [inline]
__se_sys_readlink fs/stat.c:602 [inline]
__x64_sys_readlink+0x78/0xc0 fs/stat.c:602
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x119/0x710 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7faecd2d63a7
Code: 00 00 90 48 83 ec 10 48 63 ff 45 31 c9 45 31 c0 6a 00 31 c9 e8 8a 20 f9 ff 48 83 c4 18 c3 0f 1f 44 00 00 b8 59 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 8b 15 21 ba 0d 00 f7 d8 64 89 02 48
RSP: 002b:00007ffd36ade318 EFLAGS: 00000202 ORIG_RAX: 0000000000000059
RAX: ffffffffffffffda RBX: 00007ffd36adeb60 RCX: 00007faecd2d63a7
RDX: 0000000000000400 RSI: 00007ffd36ade720 RDI: 00007ffd36ade320
RBP: 0000000000000200 R08: 000055cb61b46c29 R09: 0000000000000000
R10: 0000000000000010 R11: 0000000000000202 R12: 00007ffd36ade320
R13: 00007ffd36ade720 R14: 000055cb61b49ca4 R15: 000055cb61b49bcc
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x135ccb
flags: 0x200000000000000(node=0|zone=2)
raw: 0200000000000000 0000000000000000 00000000ffffffff 0000000000000000
raw: 0000000000000000 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as freed
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4888, tgid 4888 (modprobe), ts 92155043159
set_page_owner include/linux/page_owner.h:33 [inline]
post_alloc_hook+0xfd/0x120 mm/page_alloc.c:1871
prep_new_page mm/page_alloc.c:1879 [inline]
get_page_from_freelist+0xf4b/0x3440 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x2d7/0x2f70 mm/page_alloc.c:5436
alloc_slab_page mm/slub.c:3347 [inline]
allocate_slab mm/slub.c:3462 [inline]
new_slab+0xa9/0x6e0 mm/slub.c:3513
refill_objects+0xe3/0x410 mm/slub.c:7410
refill_sheaf mm/slub.c:2885 [inline]
__prefill_sheaf_pfmemalloc+0x5f/0xb0 mm/slub.c:5086
kmem_cache_prefill_sheaf+0x1bd/0x450 mm/slub.c:5174
mt_get_sheaf lib/maple_tree.c:154 [inline]
mas_alloc_nodes lib/maple_tree.c:1116 [inline]
mas_preallocate+0x65a/0xee0 lib/maple_tree.c:5057
vma_iter_prealloc mm/vma.h:665 [inline]
__split_vma+0x2f8/0x1db0 mm/vma.c:573
vms_gather_munmap_vmas+0x3a5/0x1670 mm/vma.c:1528
__mmap_setup mm/vma.c:2538 [inline]
__mmap_region+0x4c9/0x3150 mm/vma.c:2861
mmap_region+0x3db/0x6d0 mm/vma.c:2964
do_mmap+0x12b6/0x1c10 mm/mmap.c:573
vm_mmap_pgoff+0x1f0/0x390 mm/util.c:581
ksys_mmap_pgoff+0x3cb/0x610 mm/mmap.c:619
__do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline]
__se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline]
__x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82
page last free pid 5255 tgid 5255 ts 140032398253 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0x714/0xfc0 mm/page_alloc.c:2962
qlink_free mm/kasan/quarantine.c:163 [inline]
qlist_free_all+0x47/0xf0 mm/kasan/quarantine.c:179
kasan_quarantine_reduce+0x1a0/0x1f0 mm/kasan/quarantine.c:286
__kasan_slab_alloc+0x4e/0x70 mm/kasan/common.c:350
kasan_slab_alloc include/linux/kasan.h:253 [inline]
slab_post_alloc_hook mm/slub.c:4683 [inline]
slab_alloc_node mm/slub.c:4996 [inline]
kmem_cache_alloc_node_noprof+0x27d/0x690 mm/slub.c:5068
__alloc_skb+0x140/0x710 net/core/skbuff.c:704
alloc_skb include/linux/skbuff.h:1384 [inline]
netlink_alloc_large_skb+0x69/0x150 net/netlink/af_netlink.c:1185
netlink_sendmsg+0x680/0xda0 net/netlink/af_netlink.c:1875
sock_sendmsg_nosec net/socket.c:800 [inline]
__sock_sendmsg net/socket.c:815 [inline]
____sys_sendmsg+0xa4d/0xbe0 net/socket.c:2713
___sys_sendmsg+0x190/0x1e0 net/socket.c:2767
__sys_sendmsg+0x160/0x210 net/socket.c:2799
do_syscall_x64 arch/x86/entry/syscall_64.c:61 [inline]
do_syscall_64+0x119/0x710 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff888135ccb300: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888135ccb380: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888135ccb400: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888135ccb480: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888135ccb500: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
----------------
Code disassembly (best guess):
0: 4c 24 10 rex.WR and $0x10,%al
3: 4c 8b 44 24 08 mov 0x8(%rsp),%r8
8: e9 65 fc ff ff jmp 0xfffffc72
d: 66 66 2e 0f 1f 84 00 data16 cs nopw 0x0(%rax,%rax,1)
14: 00 00 00 00
18: 66 90 xchg %ax,%ax
1a: 90 nop
1b: 90 nop
1c: 90 nop
1d: 90 nop
1e: 90 nop
1f: 90 nop
20: 90 nop
21: 90 nop
22: 90 nop
23: 90 nop
24: 90 nop
25: 90 nop
26: 90 nop
27: 90 nop
28: 90 nop
29: 90 nop
* 2a: f3 0f 1e fa endbr64 <-- trapping instruction
2e: e8 77 dd ef 05 call 0x5efddaa
33: ba 01 00 00 00 mov $0x1,%edx
38: 85 c0 test %eax,%eax
3a: 75 07 jne 0x43
3c: 89 d0 mov %edx,%eax
3e: e9 .byte 0xe9
3f: d7 xlat %ds:(%rbx)