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

Status: upstream: reported C repro on 2025/01/04 22:42
Reported-by: syzbot+7a1c3b8c6950bb246cfc@syzkaller.appspotmail.com
First crash: 633d, last: 6h38m
▶ ▼ Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-15 KASAN: slab-out-of-bounds Read in tc_setup_flow_action origin:lts 17 syz, C 2677 1d23h 633d 0/2 upstream: reported C repro on 2025/01/04 22:41

Sample crash report:
==================================================================
BUG: KASAN: slab-out-of-bounds in is_tcf_tunnel_set include/net/tc_act/tc_tunnel_key.h:33 [inline]
BUG: KASAN: slab-out-of-bounds in tc_setup_flow_action+0x88e/0x3160 net/sched/cls_api.c:3640
Read of size 8 at addr ffff88810b2080d8 by task syz-executor324/297

CPU: 0 PID: 297 Comm: syz-executor324 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
Call Trace:
 __dump_stack+0x21/0x24 lib/dump_stack.c:77
 dump_stack_lvl+0x1a7/0x208 lib/dump_stack.c:118
 print_address_description+0x7f/0x2c0 mm/kasan/report.c:248
 __kasan_report mm/kasan/report.c:435 [inline]
 kasan_report+0x100/0x140 mm/kasan/report.c:452
 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report_generic.c:309
 is_tcf_tunnel_set include/net/tc_act/tc_tunnel_key.h:33 [inline]
 tc_setup_flow_action+0x88e/0x3160 net/sched/cls_api.c:3640
 mall_replace_hw_filter+0x2db/0x8c0 net/sched/cls_matchall.c:100
 mall_change+0x546/0x770 net/sched/cls_matchall.c:236
 tc_new_tfilter+0x1487/0x1ab0 net/sched/cls_api.c:2134
 rtnetlink_rcv_msg+0x811/0xca0 net/core/rtnetlink.c:5613
 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2377
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2431
 __sys_sendmsg net/socket.c:2460 [inline]
 __do_sys_sendmsg net/socket.c:2469 [inline]
 __se_sys_sendmsg net/socket.c:2467 [inline]
 __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2467
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f1dfcbb5079
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff778b4388 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fff778b44b8 RCX: 00007f1dfcbb5079
RDX: 0000000000000000 RSI: 0000200000000180 RDI: 0000000000000004
RBP: 0000000000000001 R08: 0000000000000003 R09: 00007fff778b44b8
R10: 0000000000000008 R11: 0000000000000246 R12: 00007fff778b44a8
R13: 0000000000000002 R14: 00007f1dfcc45ca0 R15: 0000000000000002

Allocated by task 297:
 kasan_save_stack mm/kasan/common.c:38 [inline]
 kasan_set_track mm/kasan/common.c:45 [inline]
 set_alloc_info mm/kasan/common.c:430 [inline]
 ____kasan_kmalloc mm/kasan/common.c:509 [inline]
 __kasan_kmalloc+0xd4/0x100 mm/kasan/common.c:518
 kasan_kmalloc include/linux/kasan.h:254 [inline]
 __kmalloc+0x19f/0x330 mm/slub.c:4038
 kmalloc include/linux/slab.h:560 [inline]
 kzalloc include/linux/slab.h:667 [inline]
 tcf_idr_create+0x5f/0x790 net/sched/act_api.c:425
 tcf_idr_create_from_flags+0x61/0x70 net/sched/act_api.c:483
 tcf_gact_init+0x2e6/0x560 net/sched/act_gact.c:107
 tcf_action_init_1+0x443/0x6d0 net/sched/act_api.c:1047
 tcf_action_init+0x227/0x780 net/sched/act_api.c:1104
 tcf_exts_validate+0x23c/0x540 net/sched/cls_api.c:3087
 mall_set_parms+0x4a/0x450 net/sched/cls_matchall.c:171
 mall_change+0x47a/0x770 net/sched/cls_matchall.c:230
 tc_new_tfilter+0x1487/0x1ab0 net/sched/cls_api.c:2134
 rtnetlink_rcv_msg+0x811/0xca0 net/core/rtnetlink.c:5613
 netlink_rcv_skb+0x1e9/0x430 net/netlink/af_netlink.c:2508
 rtnetlink_rcv+0x1c/0x20 net/core/rtnetlink.c:5640
 netlink_unicast_kernel net/netlink/af_netlink.c:1314 [inline]
 netlink_unicast+0x86c/0xa30 net/netlink/af_netlink.c:1340
 netlink_sendmsg+0x949/0xb70 net/netlink/af_netlink.c:1919
 sock_sendmsg_nosec net/socket.c:652 [inline]
 __sock_sendmsg net/socket.c:664 [inline]
 ____sys_sendmsg+0x5be/0x8f0 net/socket.c:2377
 ___sys_sendmsg+0x236/0x2e0 net/socket.c:2431
 __sys_sendmsg net/socket.c:2460 [inline]
 __do_sys_sendmsg net/socket.c:2469 [inline]
 __se_sys_sendmsg net/socket.c:2467 [inline]
 __x64_sys_sendmsg+0x201/0x2d0 net/socket.c:2467
 do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x61/0xcb

The buggy address belongs to the object at ffff88810b208000
 which belongs to the cache kmalloc-256 of size 256
The buggy address is located 216 bytes inside of
 256-byte region [ffff88810b208000, ffff88810b208100)
The buggy address belongs to the page:
page:ffffea00042c8200 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10b208
head:ffffea00042c8200 order:1 compound_mapcount:0
flags: 0x4000000000010200(slab|head)
raw: 4000000000010200 ffffea00042cb700 0000000500000005 ffff888100043200
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 1, ts 2148547289, free_ts 0
 set_page_owner include/linux/page_owner.h:35 [inline]
 post_alloc_hook mm/page_alloc.c:2456 [inline]
 prep_new_page+0x176/0x190 mm/page_alloc.c:2462
 get_page_from_freelist+0x225f/0x23f0 mm/page_alloc.c:4254
 __alloc_pages_nodemask+0x29a/0x640 mm/page_alloc.c:5384
 alloc_slab_page mm/slub.c:-1 [inline]
 allocate_slab mm/slub.c:1813 [inline]
 new_slab+0x84/0x3f0 mm/slub.c:1874
 new_slab_objects mm/slub.c:2632 [inline]
 ___slab_alloc+0x2f8/0x4c0 mm/slub.c:2796
 __slab_alloc+0x63/0xa0 mm/slub.c:2836
 slab_alloc_node mm/slub.c:2918 [inline]
 slab_alloc mm/slub.c:2960 [inline]
 kmem_cache_alloc_trace+0x1a8/0x2e0 mm/slub.c:2977
 kmalloc include/linux/slab.h:555 [inline]
 scsi_probe_and_add_lun+0x23f/0x3370 drivers/scsi/scsi_scan.c:1102
 __scsi_scan_target+0x1d2/0xbf0 drivers/scsi/scsi_scan.c:1581
 scsi_scan_channel drivers/scsi/scsi_scan.c:1669 [inline]
 scsi_scan_host_selected+0x34e/0x600 drivers/scsi/scsi_scan.c:1698
 do_scsi_scan_host drivers/scsi/scsi_scan.c:1837 [inline]
 scsi_scan_host+0x39e/0x670 drivers/scsi/scsi_scan.c:1867
 virtscsi_probe+0x8f6/0xab0 drivers/scsi/virtio_scsi.c:915
 virtio_dev_probe+0x8df/0xb30 drivers/virtio/virtio.c:274
 really_probe+0x373/0xa60 drivers/base/dd.c:558
 driver_probe_device+0xe1/0x190 drivers/base/dd.c:752
 device_driver_attach+0x17a/0x280 drivers/base/dd.c:1035
page_owner free stack trace missing

Memory state around the buggy address:
 ffff88810b207f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810b208000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff88810b208080: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc
                                                    ^
 ffff88810b208100: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff88810b208180: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
==================================================================

Crashes (2868):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/26 04:30 android13-5.10-lts c5d8ec7afea2 a3c7249d .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/06/15 21:07 android13-5.10-lts a36936eeef1e 50bb0618 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/05/24 20:15 android13-5.10-lts f5a34916f66d c69befb3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/02/12 22:16 android13-5.10-lts e8b14e1cefe8 504cb1bf .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/12/30 04:19 android13-5.10-lts e253c52bbdfc d6526ea3 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/09/20 20:09 android13-5.10-lts 911f602c2237 67c37560 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/06/12 15:10 android13-5.10-lts d76d4cd0623a 98683f8f .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/04/05 17:32 android13-5.10-lts 094fc3778d6b c53ea9c9 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/01/04 22:55 android13-5.10-lts 49e8ba0a684f f3558dbf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/01/04 22:39 android13-5.10-lts 49e8ba0a684f f3558dbf .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/30 01:26 android13-5.10-lts 9d97551ff1f9 328436b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/29 16:45 android13-5.10-lts 9d97551ff1f9 7bf4ea23 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/28 08:18 android13-5.10-lts c5d8ec7afea2 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/28 03:57 android13-5.10-lts c5d8ec7afea2 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/26 18:48 android13-5.10-lts c5d8ec7afea2 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/26 03:58 android13-5.10-lts c5d8ec7afea2 a3c7249d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/23 12:28 android13-5.10-lts 452567d1985b abce1216 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/22 14:52 android13-5.10-lts 452567d1985b e12281bd .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/22 00:55 android13-5.10-lts 452567d1985b 853b104b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/15 18:05 android13-5.10-lts 452567d1985b 2daa4bb5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/13 18:53 android13-5.10-lts 452567d1985b 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/13 17:36 android13-5.10-lts 452567d1985b 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/13 00:49 android13-5.10-lts 452567d1985b 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/12 05:37 android13-5.10-lts 452567d1985b 70a60e12 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/08 02:58 android13-5.10-lts 452567d1985b 680aa3e1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/07 04:08 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/06 11:18 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/06 09:38 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/05 22:27 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/05 04:27 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/04 23:46 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/04 23:46 android13-5.10-lts 452567d1985b 4f7b22a0 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/04 18:46 android13-5.10-lts 452567d1985b f65209a4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/04 04:33 android13-5.10-lts 452567d1985b 801f0966 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/04 02:01 android13-5.10-lts 452567d1985b 801f0966 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/03 19:49 android13-5.10-lts d1d91e95d6f1 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/03 16:44 android13-5.10-lts d1d91e95d6f1 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/03 10:04 android13-5.10-lts d1d91e95d6f1 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/02 22:11 android13-5.10-lts 4185c27befd4 85995287 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/02 03:47 android13-5.10-lts 4185c27befd4 587f6b29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/01 22:03 android13-5.10-lts 4f08b4b867e1 587f6b29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/09/01 17:12 android13-5.10-lts 4f08b4b867e1 587f6b29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/30 23:22 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/30 20:52 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/30 18:31 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/30 14:44 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/30 12:34 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/30 09:04 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/29 06:24 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/29 06:23 android13-5.10-lts 174d3ccb72b8 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/26 18:05 android13-5.10-lts 174d3ccb72b8 a2b77b9e .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/23 20:04 android13-5.10-lts e334a66065d3 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/23 01:40 android13-5.10-lts e334a66065d3 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/22 22:52 android13-5.10-lts e334a66065d3 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2026/08/22 08:25 android13-5.10-lts e334a66065d3 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
2025/01/04 22:20 android13-5.10-lts 49e8ba0a684f f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-10 KASAN: slab-out-of-bounds Read in tc_setup_flow_action
* Struck through repros no longer work on HEAD.