syzbot
KASAN: slab-out-of-bounds Read in pn533_recv_frame
Status:
upstream: reported on 2026/10/13 09:17
Reported-by: syzbot+ffad7df43563f8084151@syzkaller.appspotmail.com
First crash: 3h26m, last: 3h26m
Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in hex_dump_to_buffer+0x3b2/0xd60 lib/hexdump.c:193
Read of size 1 at addr ffff888060f31200 by task dhcpcd-run-hook/5232
CPU: 0 PID: 5232 Comm: dhcpcd-run-hook Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
<IRQ>
dump_stack_lvl+0x188/0x250 lib/dump_stack.c:106
print_address_description+0x60/0x2d0 mm/kasan/report.c:248
__kasan_report mm/kasan/report.c:434 [inline]
kasan_report+0xdf/0x130 mm/kasan/report.c:451
hex_dump_to_buffer+0x3b2/0xd60 lib/hexdump.c:193
print_hex_dump+0x168/0x2b0 lib/hexdump.c:276
pn533_recv_frame+0x593/0x5f0 drivers/nfc/pn533/pn533.c:2206
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1674
dummy_timer+0xa47/0x34a0 drivers/usb/gadget/udc/dummy_hcd.c:2012
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x56c/0x810 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x336/0x830 kernel/softirq.c:576
__do_softirq kernel/softirq.c:610 [inline]
invoke_softirq kernel/softirq.c:450 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
RIP: 0010:lock_is_held_type+0x13a/0x190 kernel/locking/lockdep.c:5813
Code: 75 40 48 c7 04 24 00 00 00 00 9c 8f 04 24 f7 04 24 00 02 00 00 75 46 41 f7 c5 00 02 00 00 74 01 fb 65 48 8b 04 25 28 00 00 00 <48> 3b 44 24 08 75 3c 89 e8 48 83 c4 10 5b 41 5c 41 5d 41 5e 41 5f
RSP: 0000:ffffc900040f7b98 EFLAGS: 00000206
RAX: 6259df8a386a7400 RBX: ffff8880277abb80 RCX: 6259df8a386a7400
RDX: 0000000000000000 RSI: ffffffff8a2b3e80 RDI: ffffffff8a7a4c00
RBP: 0000000000000000 R08: dffffc0000000000 R09: 1ffffffff2202a18
R10: dffffc0000000000 R11: fffffbfff2202a19 R12: 0000000000000002
R13: 0000000000000246 R14: ffffffff8d144888 R15: ffff8880277ac6c0
lock_is_held include/linux/lockdep.h:292 [inline]
task_css include/linux/cgroup.h:496 [inline]
mem_cgroup_from_task+0x5e/0x110 mm/memcontrol.c:935
count_memcg_event_mm+0x164/0x370 include/linux/memcontrol.h:1080
handle_mm_fault+0x134/0x4440 mm/memory.c:4863
do_user_addr_fault+0x494/0xc90 arch/x86/mm/fault.c:1355
handle_page_fault arch/x86/mm/fault.c:1443 [inline]
exc_page_fault+0x60/0x100 arch/x86/mm/fault.c:1496
asm_exc_page_fault+0x22/0x30 arch/x86/include/asm/idtentry.h:606
RIP: 0033:0x7f67bde80000
Code: Unable to access opcode bytes at RIP 0x7f67bde7ffd6.
RSP: 002b:00007ffd5eac88c8 EFLAGS: 00010206
RAX: 00007f67bde80000 RBX: 00007f67bdf320c0 RCX: 00007ffd5eac8960
RDX: 00007ffd5eac8960 RSI: 00007ffd5eac8948 RDI: 0000000000000002
RBP: 0000000000000002 R08: 00000000000001e0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd5eac8948
R13: 00007ffd5eac8960 R14: 00007f67bdf6a310 R15: 0000000000000000
</TASK>
Allocated by task 5232:
kasan_save_stack mm/kasan/common.c:38 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
____kasan_kmalloc mm/kasan/common.c:513 [inline]
__kasan_kmalloc+0xaf/0xe0 mm/kasan/common.c:522
kmalloc_reserve net/core/skbuff.c:356 [inline]
__alloc_skb+0x22c/0x750 net/core/skbuff.c:427
alloc_skb include/linux/skbuff.h:1162 [inline]
pn533_recv_response+0xbc/0x230 drivers/nfc/pn533/usb.c:65
__usb_hcd_giveback_urb+0x35d/0x520 drivers/usb/core/hcd.c:1674
dummy_timer+0xa47/0x34a0 drivers/usb/gadget/udc/dummy_hcd.c:2012
call_timer_fn+0x17b/0x540 kernel/time/timer.c:1648
expire_timers kernel/time/timer.c:1699 [inline]
__run_timers+0x56c/0x810 kernel/time/timer.c:1970
run_timer_softirq+0x63/0xf0 kernel/time/timer.c:1983
handle_softirqs+0x336/0x830 kernel/softirq.c:576
__do_softirq kernel/softirq.c:610 [inline]
invoke_softirq kernel/softirq.c:450 [inline]
__irq_exit_rcu+0x13b/0x230 kernel/softirq.c:659
irq_exit_rcu+0x5/0x20 kernel/softirq.c:671
instr_sysvec_apic_timer_interrupt arch/x86/kernel/apic/apic.c:1108 [inline]
sysvec_apic_timer_interrupt+0xa0/0xc0 arch/x86/kernel/apic/apic.c:1108
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:676
The buggy address belongs to the object at ffff888060f31000
which belongs to the cache kmalloc-512 of size 512
The buggy address is located 0 bytes to the right of
512-byte region [ffff888060f31000, ffff888060f31200)
The buggy address belongs to the page:
page:ffffea000183cc00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x60f30
head:ffffea000183cc00 order:2 compound_mapcount:0 compound_pincount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 0000000000000000 0000000100000001 ffff888017841c80
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
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 4184, ts 63696466301, free_ts 63695118740
prep_new_page mm/page_alloc.c:2426 [inline]
get_page_from_freelist+0x24f6/0x2670 mm/page_alloc.c:4192
__alloc_pages+0x1ee/0x480 mm/page_alloc.c:5501
alloc_slab_page mm/slub.c:1780 [inline]
allocate_slab mm/slub.c:1917 [inline]
new_slab+0xc0/0x4b0 mm/slub.c:1980
___slab_alloc+0x807/0xdd0 mm/slub.c:3013
__slab_alloc mm/slub.c:3100 [inline]
slab_alloc_node mm/slub.c:3191 [inline]
slab_alloc mm/slub.c:3233 [inline]
kmem_cache_alloc_trace+0xf9/0x290 mm/slub.c:3250
kmalloc include/linux/slab.h:607 [inline]
kzalloc include/linux/slab.h:738 [inline]
device_private_init drivers/base/core.c:3256 [inline]
device_add+0xb2/0x1050 drivers/base/core.c:3306
nsim_bus_dev_new drivers/net/netdevsim/bus.c:435 [inline]
new_device_store+0x3e3/0x770 drivers/net/netdevsim/bus.c:302
kernfs_fop_write_iter+0x3a8/0x500 fs/kernfs/file.c:296
call_write_iter include/linux/fs.h:2179 [inline]
new_sync_write fs/read_write.c:507 [inline]
vfs_write+0x748/0xd70 fs/read_write.c:594
ksys_write+0x153/0x260 fs/read_write.c:647
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
page last free stack trace:
reset_page_owner include/linux/page_owner.h:24 [inline]
free_pages_prepare mm/page_alloc.c:1340 [inline]
free_pcp_prepare mm/page_alloc.c:1391 [inline]
free_unref_page_prepare+0x637/0x6c0 mm/page_alloc.c:3317
free_unref_page+0x8f/0x2a0 mm/page_alloc.c:3396
stack_depot_save+0x42f/0x460 lib/stackdepot.c:335
kasan_save_stack mm/kasan/common.c:40 [inline]
kasan_set_track mm/kasan/common.c:46 [inline]
set_alloc_info mm/kasan/common.c:434 [inline]
__kasan_slab_alloc+0xa9/0xc0 mm/kasan/common.c:467
kasan_slab_alloc include/linux/kasan.h:254 [inline]
slab_post_alloc_hook+0x4c/0x380 mm/slab.h:519
slab_alloc_node mm/slub.c:3225 [inline]
slab_alloc mm/slub.c:3233 [inline]
kmem_cache_alloc+0x15d/0x280 mm/slub.c:3238
skb_clone+0x1bd/0x350 net/core/skbuff.c:1527
do_one_broadcast net/netlink/af_netlink.c:1453 [inline]
netlink_broadcast_filtered+0x620/0x1170 net/netlink/af_netlink.c:1533
netlink_broadcast+0x33/0x40 net/netlink/af_netlink.c:1557
uevent_net_broadcast_untagged lib/kobject_uevent.c:331 [inline]
kobject_uevent_net_broadcast+0x364/0x530 lib/kobject_uevent.c:409
kobject_uevent_env+0x550/0x890 lib/kobject_uevent.c:608
really_probe+0x76f/0xc70 drivers/base/dd.c:649
__driver_probe_device+0x1f5/0x390 drivers/base/dd.c:775
driver_probe_device+0x4f/0x420 drivers/base/dd.c:805
__device_attach_driver+0x2b0/0x500 drivers/base/dd.c:927
bus_for_each_drv+0x184/0x210 drivers/base/bus.c:429
Memory state around the buggy address:
ffff888060f31100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888060f31180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888060f31200: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
^
ffff888060f31280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
ffff888060f31300: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================
----------------
Code disassembly (best guess):
0: 75 40 jne 0x42
2: 48 c7 04 24 00 00 00 movq $0x0,(%rsp)
9: 00
a: 9c pushf
b: 8f 04 24 pop (%rsp)
e: f7 04 24 00 02 00 00 testl $0x200,(%rsp)
15: 75 46 jne 0x5d
17: 41 f7 c5 00 02 00 00 test $0x200,%r13d
1e: 74 01 je 0x21
20: fb sti
21: 65 48 8b 04 25 28 00 mov %gs:0x28,%rax
28: 00 00
* 2a: 48 3b 44 24 08 cmp 0x8(%rsp),%rax <-- trapping instruction
2f: 75 3c jne 0x6d
31: 89 e8 mov %ebp,%eax
33: 48 83 c4 10 add $0x10,%rsp
37: 5b pop %rbx
38: 41 5c pop %r12
3a: 41 5d pop %r13
3c: 41 5e pop %r14
3e: 41 5f pop %r15
* Struck through repros no longer work on HEAD.