syzbot


KASAN: stack-out-of-bounds Read in xfrm_state_find (2)

Status: public: reported C repro on 2019/04/11 08:44
Reported-by: syzbot+d53b6a6b04837f514a88@syzkaller.appspotmail.com
First crash: 1885d, last: 1550d
Similar bugs (13)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (3) net C 10353 2225d 2293d 4/26 fixed on 2018/01/31 00:24
android-44 KASAN: stack-out-of-bounds Read in xfrm_state_find C 842 1553d 1785d 0/2 public: reported C repro on 2019/04/12 00:00
android-54 KASAN: stack-out-of-bounds Read in xfrm_state_find C 1 425d 425d 0/2 upstream: reported C repro on 2023/01/01 01:05
android-5-15 KASAN: stack-out-of-bounds Read in xfrm_state_find origin:upstream missing-backport C error 2 2d11h 425d 0/2 upstream: reported C repro on 2023/01/01 00:40
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (5) net C done 654 1858d 2160d 13/26 fixed on 2019/11/11 16:48
upstream KMSAN: uninit-value in xfrm_state_find net C error done 215 287d 2086d 22/26 fixed on 2023/07/01 16:05
android-5-10 KASAN: stack-out-of-bounds Read in xfrm_state_find (2) syz error error 1 425d 425d 0/2 auto-obsoleted due to no activity on 2023/05/14 02:28
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find net C 365 2321d 2394d 0/26 closed as invalid on 2017/10/23 16:19
android-5-10 KASAN: stack-out-of-bounds Read in xfrm_state_find 1 845d 845d 0/2 closed as invalid on 2022/02/03 13:56
android-49 KASAN: stack-out-of-bounds Read in xfrm_state_find C 4151 1886d 2397d 0/3 closed as invalid on 2019/01/01 20:10
android-414 KASAN: stack-out-of-bounds Read in xfrm_state_find C 137 1860d 1786d 0/1 public: reported C repro on 2019/04/11 00:00
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (2) net C 93 2303d 2312d 3/26 fixed on 2017/11/18 01:42
upstream KASAN: stack-out-of-bounds Read in xfrm_state_find (4) net C 102 2170d 2221d 4/26 fixed on 2018/03/23 18:14

Sample crash report:
random: crng init done
==================================================================
BUG: KASAN: stack-out-of-bounds in __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline]
BUG: KASAN: stack-out-of-bounds in __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline]
BUG: KASAN: stack-out-of-bounds in xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline]
BUG: KASAN: stack-out-of-bounds in xfrm_state_find+0x26a0/0x2910 net/xfrm/xfrm_state.c:807
Read of size 4 at addr ffff8801cd59f6b0 by task syz-executor824/2054

CPU: 0 PID: 2054 Comm: syz-executor824 Not tainted 4.9.148+ #1
 ffff8801cd59ee60 ffffffff81b44d01 0000000000000000 ffffea00073567c0
 ffff8801cd59f6b0 0000000000000004 ffffffff82653050 ffff8801cd59ee98
 ffffffff815020d5 0000000000000000 ffff8801cd59f6b0 ffff8801cd59f6b0
Call Trace:
 [<ffffffff81b44d01>] __dump_stack lib/dump_stack.c:15 [inline]
 [<ffffffff81b44d01>] dump_stack+0xc1/0x120 lib/dump_stack.c:51
 [<ffffffff815020d5>] print_address_description+0x6f/0x238 mm/kasan/report.c:256
 [<ffffffff8150232a>] kasan_report_error mm/kasan/report.c:355 [inline]
 [<ffffffff8150232a>] kasan_report mm/kasan/report.c:412 [inline]
 [<ffffffff8150232a>] kasan_report.cold+0x8c/0x2ba mm/kasan/report.c:397
 [<ffffffff814f4504>] __asan_report_load4_noabort+0x14/0x20 mm/kasan/report.c:432
 [<ffffffff82653050>] __xfrm6_daddr_saddr_hash net/xfrm/xfrm_hash.h:28 [inline]
 [<ffffffff82653050>] __xfrm_dst_hash net/xfrm/xfrm_hash.h:95 [inline]
 [<ffffffff82653050>] xfrm_dst_hash net/xfrm/xfrm_state.c:60 [inline]
 [<ffffffff82653050>] xfrm_state_find+0x26a0/0x2910 net/xfrm/xfrm_state.c:807
 [<ffffffff82638ad7>] xfrm_tmpl_resolve_one+0x1c7/0x7a0 net/xfrm/xfrm_policy.c:1500
 [<ffffffff826392c6>] xfrm_tmpl_resolve net/xfrm/xfrm_policy.c:1544 [inline]
 [<ffffffff826392c6>] xfrm_resolve_and_create_bundle+0x216/0x1eb0 net/xfrm/xfrm_policy.c:1893
 [<ffffffff8263c370>] xfrm_lookup+0x200/0xaf0 net/xfrm/xfrm_policy.c:2254
 [<ffffffff8263db18>] xfrm_lookup_route+0x38/0x140 net/xfrm/xfrm_policy.c:2379
 [<ffffffff82488a23>] ip_route_output_flow+0x93/0xa0 net/ipv4/route.c:2448
 [<ffffffff82568ed4>] udp_sendmsg+0x1494/0x1c60 net/ipv4/udp.c:1025
 [<ffffffff82704c6f>] udpv6_sendmsg+0x12af/0x2430 net/ipv6/udp.c:1086
 [<ffffffff82592192>] inet_sendmsg+0x202/0x4d0 net/ipv4/af_inet.c:770
 [<ffffffff822a04ee>] sock_sendmsg_nosec net/socket.c:648 [inline]
 [<ffffffff822a04ee>] sock_sendmsg+0xbe/0x110 net/socket.c:658
 [<ffffffff822a1ea7>] ___sys_sendmsg+0x387/0x8b0 net/socket.c:1982
 [<ffffffff822a5324>] __sys_sendmmsg+0x164/0x3d0 net/socket.c:2072
 [<ffffffff822a55c5>] SYSC_sendmmsg net/socket.c:2103 [inline]
 [<ffffffff822a55c5>] SyS_sendmmsg+0x35/0x60 net/socket.c:2098
 [<ffffffff810056bd>] do_syscall_64+0x1ad/0x570 arch/x86/entry/common.c:285
 [<ffffffff82812993>] entry_SYSCALL_64_after_swapgs+0x5d/0xdb

The buggy address belongs to the page:
page:ffffea00073567c0 count:0 mapcount:0 mapping:          (null) index:0x1
flags: 0x4000000000000000()
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff8801cd59f580: 00 00 00 00 00 00 00 00 00 00 00 00 00 f1 f1 f1
 ffff8801cd59f600: f1 00 00 00 f2 f2 f2 00 00 00 00 f2 f2 f2 f2 00
>ffff8801cd59f680: 00 00 00 00 00 00 f2 f2 f2 f2 f2 00 00 00 00 00
                                     ^
 ffff8801cd59f700: 00 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 00 00 00
 ffff8801cd59f780: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
==================================================================

Crashes (392):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/01/02 00:06 https://android.googlesource.com/kernel/common android-4.9 9f23a833fdcd 3d85f48c .config console log report syz C ci-android-49-kasan-gce-root
2019/01/01 23:52 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3d85f48c .config console log report syz C ci-android-49-kasan-gce
2019/12/03 16:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 ab342da3 .config console log report ci-android-49-kasan-gce
2019/11/30 15:27 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 3a75be00 .config console log report ci-android-49-kasan-gce
2019/11/28 22:53 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 46869e3e .config console log report ci-android-49-kasan-gce
2019/11/24 11:27 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 598ca6c8 .config console log report ci-android-49-kasan-gce
2019/11/23 21:51 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 598ca6c8 .config console log report ci-android-49-kasan-gce
2019/11/18 01:54 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d5696d51 .config console log report ci-android-49-kasan-gce
2019/11/17 23:03 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d5696d51 .config console log report ci-android-49-kasan-gce
2019/11/16 18:32 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d5696d51 .config console log report ci-android-49-kasan-gce
2019/11/16 07:15 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 cdac920b .config console log report ci-android-49-kasan-gce
2019/11/15 20:51 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 cdac920b .config console log report ci-android-49-kasan-gce
2019/11/15 19:26 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 cdac920b .config console log report ci-android-49-kasan-gce
2019/11/12 15:27 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 048f2d49 .config console log report ci-android-49-kasan-gce
2019/11/12 08:16 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 048f2d49 .config console log report ci-android-49-kasan-gce
2019/11/09 19:38 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 dc438b91 .config console log report ci-android-49-kasan-gce
2019/11/08 18:59 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 1e35461e .config console log report ci-android-49-kasan-gce
2019/11/06 06:21 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 bc2c6e45 .config console log report ci-android-49-kasan-gce
2019/11/05 20:19 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 0f3ec414 .config console log report ci-android-49-kasan-gce
2019/11/05 17:06 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 0f3ec414 .config console log report ci-android-49-kasan-gce
2019/11/04 21:29 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 76630fc9 .config console log report ci-android-49-kasan-gce
2019/11/04 15:56 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 18e12644 .config console log report ci-android-49-kasan-gce
2019/11/04 11:07 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b35fad31 .config console log report ci-android-49-kasan-gce
2019/11/04 07:35 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b35fad31 .config console log report ci-android-49-kasan-gce
2019/11/03 22:22 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 c9610487 .config console log report ci-android-49-kasan-gce
2019/11/01 03:15 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a41ca8fa .config console log report ci-android-49-kasan-gce
2019/11/01 00:42 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a41ca8fa .config console log report ci-android-49-kasan-gce
2019/10/31 16:38 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 a41ca8fa .config console log report ci-android-49-kasan-gce
2019/10/30 08:33 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 5ea87a66 .config console log report ci-android-49-kasan-gce
2019/10/29 21:34 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 5ea87a66 .config console log report ci-android-49-kasan-gce
2019/10/29 00:52 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 439d7b14 .config console log report ci-android-49-kasan-gce
2019/10/28 15:16 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 25bb509e .config console log report ci-android-49-kasan-gce
2019/10/27 23:30 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 25bb509e .config console log report ci-android-49-kasan-gce
2019/10/27 20:25 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 25bb509e .config console log report ci-android-49-kasan-gce
2019/10/27 11:33 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 25bb509e .config console log report ci-android-49-kasan-gce
2019/10/26 07:44 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 413926c5 .config console log report ci-android-49-kasan-gce
2019/10/26 04:24 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 c2e837da .config console log report ci-android-49-kasan-gce
2019/10/24 22:53 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d01bb02a .config console log report ci-android-49-kasan-gce
2019/10/24 17:28 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d01bb02a .config console log report ci-android-49-kasan-gce
2019/10/24 15:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 d01bb02a .config console log report ci-android-49-kasan-gce
2019/10/24 05:52 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b602d64b .config console log report ci-android-49-kasan-gce
2019/10/24 03:44 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b602d64b .config console log report ci-android-49-kasan-gce
2019/10/23 21:56 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b602d64b .config console log report ci-android-49-kasan-gce
2019/10/23 20:20 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b602d64b .config console log report ci-android-49-kasan-gce
2019/10/22 23:03 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 5681358a .config console log report ci-android-49-kasan-gce
2019/10/22 00:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 b24d2b8a .config console log report ci-android-49-kasan-gce
2019/10/21 03:39 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/10/20 23:12 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/10/20 11:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/10/19 04:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/10/19 02:28 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/10/19 01:20 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/10/17 13:41 https://android.googlesource.com/kernel/common android-4.9 8fe428403e30 8c88c9c1 .config console log report ci-android-49-kasan-gce
2019/03/20 21:41 https://android.googlesource.com/kernel/common android-4.9 1597fdfe52ba a664c187 .config console log report ci-android-49-kasan-gce-root
* Struck through repros no longer work on HEAD.