syzbot
KASAN: slab-out-of-bounds Read in pn533_recv_frame
Status:
upstream: reported on 2026/10/12 17:44
Subsystems:
nfc
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+93f169a8e7d66864f800@syzkaller.appspotmail.com
First crash: 10d, last: 14h28m
Sample crash report:
PN533 RX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PN533 RX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
PN533 RX: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0xbc4/0xc60 lib/hexdump.c:194
Read of size 1 at addr ffff88807c4dfa00 by task kworker/1:5/5712
CPU: 1 UID: 0 PID: 5712 Comm: kworker/1:5 Tainted: G L syzkaller #0 PREEMPT(full)
Tainted: [L]=SOFTLOCKUP
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026
Workqueue: usb_hub_wq hub_event
Call Trace:
<IRQ>
__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
hex_dump_to_buffer+0xbc4/0xc60 lib/hexdump.c:194
print_hex_dump+0x14a/0x1f0 lib/hexdump.c:277
pn533_recv_frame+0x48e/0x6d0 drivers/nfc/pn533/pn533.c:2202
__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+0xdaf/0x3820 drivers/usb/gadget/udc/dummy_hcd.c:2023
__run_hrtimer kernel/time/hrtimer.c:2074 [inline]
__hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2131
hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2148
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0x16a/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+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
RIP: 0010:vprintk_store+0x228/0xbe0 kernel/printk/printk.c:2288
Code: ed 0f 85 cf 07 00 00 e8 c6 59 22 00 9c 5b 81 e3 00 02 00 00 31 ff 48 89 de e8 54 54 22 00 48 85 db 0f 85 fb 08 00 00 45 31 ed <e8> a3 59 22 00 48 8b 4c 24 10 48 b8 00 00 00 00 00 fc ff df 48 01
RSP: 0000:ffffc90004a06e90 EFLAGS: 00000283
RAX: 000000000000e4ef RBX: 0000000000000000 RCX: ffffc9001af4e000
RDX: 0000000000100000 RSI: ffffffff81ea0635 RDI: ffff8880257b2580
RBP: 0000000000000200 R08: 0000000000000007 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000002875480 R12: 0000000000000002
R13: 000000000000001f R14: 0000000000000000 R15: ffffffff8fd0ec80
vprintk_emit+0x139/0x6b0 kernel/printk/printk.c:2455
_printk+0xcf/0x110 kernel/printk/printk.c:2504
__dynamic_pr_debug+0x201/0x270 lib/dynamic_debug.c:879
__kernfs_remove+0x80f/0xb80 fs/kernfs/dir.c:1555
kernfs_remove fs/kernfs/dir.c:1624 [inline]
kernfs_remove+0x4b/0x70 fs/kernfs/dir.c:1613
sysfs_remove_dir+0xc8/0x110 fs/sysfs/dir.c:101
__kobject_del+0xe2/0x220 lib/kobject.c:604
kobject_del lib/kobject.c:627 [inline]
kobject_del+0x3f/0x60 lib/kobject.c:619
device_del+0x630/0x9b0 drivers/base/core.c:3985
device_unregister+0x1d/0xe0 drivers/base/core.c:4006
device_destroy+0x99/0xe0 drivers/base/core.c:4560
dvb_remove_device.part.0+0xe7/0x270 drivers/media/dvb-core/dvbdev.c:606
dvb_remove_device+0x1f/0x30 drivers/media/dvb-core/dvbdev.c:596
dvb_unregister_frontend+0x7a/0x150 drivers/media/dvb-core/dvb_frontend.c:3103
as102_dvb_unregister+0x38/0xd0 drivers/media/usb/as102/as102_drv.c:373
as102_usb_disconnect+0x5e/0x290 drivers/media/usb/as102/as102_usb_drv.c:316
usb_unbind_interface+0x1dd/0x9e0 drivers/usb/core/driver.c:461
device_remove drivers/base/dd.c:618 [inline]
device_remove+0x12a/0x180 drivers/base/dd.c:610
__device_release_driver drivers/base/dd.c:1349 [inline]
device_release_driver_internal+0x44e/0x620 drivers/base/dd.c:1372
bus_remove_device+0x2bc/0x560 drivers/base/bus.c:664
device_del+0x376/0x9b0 drivers/base/core.c:3965
usb_disable_device+0x367/0x810 drivers/usb/core/message.c:1484
usb_disconnect+0x2e2/0x9a0 drivers/usb/core/hub.c:2355
hub_port_connect drivers/usb/core/hub.c:5425 [inline]
hub_port_connect_change drivers/usb/core/hub.c:5725 [inline]
port_event drivers/usb/core/hub.c:5889 [inline]
hub_event+0x1bb1/0x4420 drivers/usb/core/hub.c:5971
process_one_work+0xac7/0x1b10 kernel/workqueue.c:3396
process_scheduled_works kernel/workqueue.c:3479 [inline]
worker_thread+0x5ef/0xe50 kernel/workqueue.c:3560
kthread+0x373/0x450 kernel/kthread.c:436
ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
</TASK>
Allocated by task 5712:
kasan_save_stack+0x30/0x50 mm/kasan/common.c:57
kasan_save_track+0x14/0x30 mm/kasan/common.c:78
unpoison_slab_object mm/kasan/common.c:351 [inline]
__kasan_slab_alloc+0x89/0x90 mm/kasan/common.c:377
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+0x282/0x6e0 mm/slub.c:5068
kmalloc_reserve+0x148/0x350 net/core/skbuff.c:615
__alloc_skb+0x185/0x710 net/core/skbuff.c:715
alloc_skb include/linux/skbuff.h:1384 [inline]
pn533_recv_response+0x100/0x200 drivers/nfc/pn533/usb.c:65
__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+0xdaf/0x3820 drivers/usb/gadget/udc/dummy_hcd.c:2023
__run_hrtimer kernel/time/hrtimer.c:2074 [inline]
__hrtimer_run_queues+0x462/0x9c0 kernel/time/hrtimer.c:2131
hrtimer_run_softirq+0x1ca/0x360 kernel/time/hrtimer.c:2148
handle_softirqs+0x1e6/0x9d0 kernel/softirq.c:645
__do_softirq kernel/softirq.c:679 [inline]
invoke_softirq kernel/softirq.c:519 [inline]
__irq_exit_rcu+0x16a/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+0xa3/0xc0 arch/x86/kernel/apic/apic.c:1062
asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674
The buggy address belongs to the object at ffff88807c4df740
which belongs to the cache skbuff_small_head of size 704
The buggy address is located 0 bytes to the right of
allocated 704-byte region [ffff88807c4df740, ffff88807c4dfa00)
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7c4dc
head: order:2 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0
flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff)
page_type: f5(slab)
raw: 00fff00000000040 ffff88814040b780 dead000000000100 dead000000000122
raw: 0000000000000000 0000000200130013 00000000f5000000 0000000000000000
head: 00fff00000000040 ffff88814040b780 dead000000000100 dead000000000122
head: 0000000000000000 0000000200130013 00000000f5000000 0000000000000000
head: 00fff00000000002 ffffffffffffff01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 2, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4975, tgid 4975 (udevd), ts 22747541043
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+0x110d/0x35d0 mm/page_alloc.c:3943
__alloc_frozen_pages_noprof+0x2eb/0x3300 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:7418
refill_sheaf mm/slub.c:2885 [inline]
__pcs_replace_empty_main+0x35e/0x650 mm/slub.c:4774
alloc_from_pcs mm/slub.c:4850 [inline]
slab_alloc_node mm/slub.c:4984 [inline]
kmem_cache_alloc_node_noprof+0x4f2/0x6e0 mm/slub.c:5068
kmalloc_reserve+0x148/0x350 net/core/skbuff.c:615
__alloc_skb+0x185/0x710 net/core/skbuff.c:715
alloc_skb include/linux/skbuff.h:1384 [inline]
netlink_alloc_large_skb+0x69/0x150 net/netlink/af_netlink.c:1204
netlink_sendmsg+0x680/0xda0 net/netlink/af_netlink.c:1898
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+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
page last free pid 4975 tgid 4975 ts 22732757795 stack trace:
reset_page_owner include/linux/page_owner.h:26 [inline]
__free_pages_prepare mm/page_alloc.c:1418 [inline]
__free_frozen_pages+0x79f/0x10f0 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+0x69/0x90 mm/kasan/common.c:361
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+0x282/0x6e0 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:1204
netlink_sendmsg+0x680/0xda0 net/netlink/af_netlink.c:1898
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+0x123/0x790 arch/x86/entry/syscall_64.c:84
entry_SYSCALL_64_after_hwframe+0x77/0x7f
Memory state around the buggy address:
ffff88807c4df900: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff88807c4df980: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88807c4dfa00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff88807c4dfa80: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
ffff88807c4dfb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
==================================================================
----------------
Code disassembly (best guess):
0: ed in (%dx),%eax
1: 0f 85 cf 07 00 00 jne 0x7d6
7: e8 c6 59 22 00 call 0x2259d2
c: 9c pushf
d: 5b pop %rbx
e: 81 e3 00 02 00 00 and $0x200,%ebx
14: 31 ff xor %edi,%edi
16: 48 89 de mov %rbx,%rsi
19: e8 54 54 22 00 call 0x225472
1e: 48 85 db test %rbx,%rbx
21: 0f 85 fb 08 00 00 jne 0x922
27: 45 31 ed xor %r13d,%r13d
* 2a: e8 a3 59 22 00 call 0x2259d2 <-- trapping instruction
2f: 48 8b 4c 24 10 mov 0x10(%rsp),%rcx
34: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax
3b: fc ff df
3e: 48 rex.W
3f: 01 .byte 0x1
* Struck through repros no longer work on HEAD.