KASAN: slab-out-of-bounds Read in drm_property_add_enum

Status: upstream: reported on 2026/08/22 23:32
Reported-by: syzbot+3ae6c146ffd87a56b74d@syzkaller.appspotmail.com
First crash: 5h42m, last: 5h42m
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: slab-out-of-bounds Read in drm_property_add_enum dri usb 17 syz, C error 51 1h38m 4d04h 0/29 upstream: reported C repro on 2026/08/19 00:44

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in strlen+0x53/0x60 lib/string.c:581
Read of size 1 at addr ffff888062248b00 by task kworker/1:5/4233

CPU: 1 PID: 4233 Comm: kworker/1:5 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Workqueue: usb_hub_wq hub_event
Call Trace:
 <TASK>
 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
 strlen+0x53/0x60 lib/string.c:581
 drm_property_add_enum+0x24/0x3c0 drivers/gpu/drm/drm_property.c:396
 drm_mode_create_tv_properties+0x1d2/0x3f0 drivers/gpu/drm/drm_connector.c:1565
 gud_connector_add_tv_mode drivers/gpu/drm/gud/gud_connector.c:402 [inline]
 gud_connector_add_properties drivers/gpu/drm/gud/gud_connector.c:525 [inline]
 gud_connector_create drivers/gpu/drm/gud/gud_connector.c:677 [inline]
 gud_get_connectors+0xd12/0x1460 drivers/gpu/drm/gud/gud_connector.c:721
 gud_probe+0x10d8/0x16a0 drivers/gpu/drm/gud/gud_drv.c:604
 usb_probe_interface+0x5be/0xae0 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x276/0xc70 drivers/base/dd.c:595
 __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
 __device_attach+0x2a7/0x480 drivers/base/dd.c:999
 bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
 device_add+0xbcf/0x1050 drivers/base/core.c:3427
 usb_set_configuration+0x19d5/0x2030 drivers/usb/core/message.c:2223
 usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
 usb_probe_device+0x126/0x250 drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x276/0xc70 drivers/base/dd.c:595
 __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
 __device_attach+0x2a7/0x480 drivers/base/dd.c:999
 bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
 device_add+0xbcf/0x1050 drivers/base/core.c:3427
 usb_new_device+0x9f6/0x15d0 drivers/usb/core/hub.c:2632
 hub_port_connect drivers/usb/core/hub.c:5497 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5637 [inline]
 port_event drivers/usb/core/hub.c:5799 [inline]
 hub_event+0x2b8d/0x5260 drivers/usb/core/hub.c:5881
 process_one_work+0x867/0xff0 kernel/workqueue.c:2310
 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
 kthread+0x42e/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287
 </TASK>

Allocated by task 4233:
 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 include/linux/slab.h:607 [inline]
 gud_connector_add_tv_mode drivers/gpu/drm/gud/gud_connector.c:385 [inline]
 gud_connector_add_properties drivers/gpu/drm/gud/gud_connector.c:525 [inline]
 gud_connector_create drivers/gpu/drm/gud/gud_connector.c:677 [inline]
 gud_get_connectors+0x9eb/0x1460 drivers/gpu/drm/gud/gud_connector.c:721
 gud_probe+0x10d8/0x16a0 drivers/gpu/drm/gud/gud_drv.c:604
 usb_probe_interface+0x5be/0xae0 drivers/usb/core/driver.c:396
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x276/0xc70 drivers/base/dd.c:595
 __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
 __device_attach+0x2a7/0x480 drivers/base/dd.c:999
 bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
 device_add+0xbcf/0x1050 drivers/base/core.c:3427
 usb_set_configuration+0x19d5/0x2030 drivers/usb/core/message.c:2223
 usb_generic_driver_probe+0x89/0x150 drivers/usb/core/generic.c:238
 usb_probe_device+0x126/0x250 drivers/usb/core/driver.c:293
 call_driver_probe drivers/base/dd.c:-1 [inline]
 really_probe+0x276/0xc70 drivers/base/dd.c:595
 __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
 __device_attach+0x2a7/0x480 drivers/base/dd.c:999
 bus_probe_device+0xba/0x1d0 drivers/base/bus.c:489
 device_add+0xbcf/0x1050 drivers/base/core.c:3427
 usb_new_device+0x9f6/0x15d0 drivers/usb/core/hub.c:2632
 hub_port_connect drivers/usb/core/hub.c:5497 [inline]
 hub_port_connect_change drivers/usb/core/hub.c:5637 [inline]
 port_event drivers/usb/core/hub.c:5799 [inline]
 hub_event+0x2b8d/0x5260 drivers/usb/core/hub.c:5881
 process_one_work+0x867/0xff0 kernel/workqueue.c:2310
 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
 kthread+0x42e/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

Last potentially related work creation:
 kasan_save_stack+0x35/0x60 mm/kasan/common.c:38
 kasan_record_aux_stack+0xb8/0x100 mm/kasan/generic.c:348
 kvfree_call_rcu+0x105/0x7f0 kernel/rcu/tree.c:3600
 drop_sysctl_table+0x359/0x4e0 fs/proc/proc_sysctl.c:1685
 drop_sysctl_table+0x348/0x4e0 fs/proc/proc_sysctl.c:1688
 unregister_sysctl_table+0x87/0x130 fs/proc/proc_sysctl.c:1723
 neigh_sysctl_unregister+0x74/0x90 net/core/neighbour.c:3737
 devinet_sysctl_unregister net/ipv4/devinet.c:2655 [inline]
 inetdev_destroy net/ipv4/devinet.c:326 [inline]
 inetdev_event+0x725/0x1350 net/ipv4/devinet.c:1611
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391
 call_netdevice_notifiers_extack net/core/dev.c:2074 [inline]
 call_netdevice_notifiers net/core/dev.c:2088 [inline]
 unregister_netdevice_many+0x109b/0x1a40 net/core/dev.c:11160
 default_device_exit_batch+0x364/0x3c0 net/core/dev.c:11693
 ops_exit_list net/core/net_namespace.c:177 [inline]
 cleanup_net+0x78e/0xba0 net/core/net_namespace.c:635
 process_one_work+0x867/0xff0 kernel/workqueue.c:2310
 worker_thread+0xad7/0x12a0 kernel/workqueue.c:2457
 kthread+0x42e/0x520 kernel/kthread.c:334
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

The buggy address belongs to the object at ffff888062248a00
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 0 bytes to the right of
 256-byte region [ffff888062248a00, ffff888062248b00)
The buggy address belongs to the page:
page:ffffea0001889200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x62248
head:ffffea0001889200 order:1 compound_mapcount:0
flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff)
raw: 00fff00000010200 ffffea0001889100 0000000800000008 ffff888016c41b40
raw: 0000000000000000 0000000080100010 00000001ffffffff 0000000000000000
page dumped because: kasan: bad access detected
page_owner tracks the page as allocated
page last allocated via order 1, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 4189, ts 65170816831, free_ts 24444738510
 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]
 __kmalloc+0x11d/0x340 mm/slub.c:4408
 kmalloc include/linux/slab.h:612 [inline]
 kzalloc include/linux/slab.h:738 [inline]
 new_dir fs/proc/proc_sysctl.c:959 [inline]
 get_subdir fs/proc/proc_sysctl.c:1004 [inline]
 __register_sysctl_table+0xa32/0x1240 fs/proc/proc_sysctl.c:1353
 __devinet_sysctl_register+0x2ba/0x380 net/ipv4/devinet.c:2603
 devinet_sysctl_register+0x17c/0x1f0 net/ipv4/devinet.c:2643
 inetdev_init+0x28c/0x4d0 net/ipv4/devinet.c:277
 inetdev_event+0x26f/0x1350 net/ipv4/devinet.c:1543
 notifier_call_chain kernel/notifier.c:83 [inline]
 raw_notifier_call_chain+0xcb/0x160 kernel/notifier.c:391
 call_netdevice_notifiers_extack net/core/dev.c:2074 [inline]
 call_netdevice_notifiers net/core/dev.c:2088 [inline]
 register_netdevice+0x12a8/0x1720 net/core/dev.c:10454
 register_netdev+0x37/0x50 net/core/dev.c:10547
 ip6gre_init_net+0x21f/0x2f0 net/ipv6/ip6_gre.c:1635
 ops_init+0x360/0x5f0 net/core/net_namespace.c:138
 setup_net+0x39e/0xa10 net/core/net_namespace.c:333
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
 free_contig_range+0x96/0xf0 mm/page_alloc.c:9428
 destroy_args+0xef/0xa00 mm/debug_vm_pgtable.c:1018
 debug_vm_pgtable+0x321/0x380 mm/debug_vm_pgtable.c:1336
 do_one_initcall+0x272/0x730 init/main.c:1315
 do_initcall_level+0x13d/0x1f0 init/main.c:1388
 do_initcalls+0x4b/0x90 init/main.c:1404
 kernel_init_freeable+0x3d5/0x560 init/main.c:1628
 kernel_init+0x19/0x1b0 init/main.c:1519
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:287

Memory state around the buggy address:
 ffff888062248a00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ffff888062248a80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888062248b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
                   ^
 ffff888062248b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff888062248c00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/22 23:32 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan KASAN: slab-out-of-bounds Read in drm_property_add_enum
* Struck through repros no longer work on HEAD.