syzbot


KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper

Status: closed as dup on 2025/09/10 06:35
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+634e67b3f57206befe3c@syzkaller.appspotmail.com
First crash: 4d18h, last: 4d07h
Cause bisection: introduced by (bisect log) :
commit db076b5db550aa34169dceee81d0974c7b2a2482
Author: David Hildenbrand <david@redhat.com>
Date: Mon Sep 1 15:03:40 2025 +0000

  mm/gup: remove record_subpages()

Crash: KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper (log)
Repro: C syz .config
  
Duplicate of
Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported
KASAN: null-ptr-deref Read in io_sqe_buffer_register io-uring 11 C done 54 2d13h 6d06h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [crypto?] KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper 1 (2) 2025/09/10 06:35

Sample crash report:
==================================================================
BUG: KASAN: wild-memory-access in crypto_nhpoly1305_update_helper+0x156/0x390 crypto/nhpoly1305.c:165
Read of size 15 at addr 0005088000000000 by task syz.0.17/6036

CPU: 0 UID: 0 PID: 6036 Comm: syz.0.17 Not tainted syzkaller #0 PREEMPT(full) 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
Call Trace:
 <TASK>
 dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120
 kasan_report+0x118/0x150 mm/kasan/report.c:595
 check_region_inline mm/kasan/generic.c:-1 [inline]
 kasan_check_range+0x2b0/0x2c0 mm/kasan/generic.c:200
 __asan_memcpy+0x29/0x70 mm/kasan/shadow.c:105
 crypto_nhpoly1305_update_helper+0x156/0x390 crypto/nhpoly1305.c:165
 nhpoly1305_sse2_update+0x68/0xb0 arch/x86/crypto/nhpoly1305-sse2-glue.c:29
 crypto_shash_update include/crypto/hash.h:1006 [inline]
 shash_ahash_update+0x213/0x2f0 crypto/ahash.c:178
 hash_sendmsg+0x96b/0x11d0 crypto/algif_hash.c:149
 sock_sendmsg_nosec net/socket.c:714 [inline]
 __sock_sendmsg+0x219/0x270 net/socket.c:729
 ____sys_sendmsg+0x52d/0x830 net/socket.c:2614
 ___sys_sendmsg+0x21f/0x2a0 net/socket.c:2668
 __sys_sendmmsg+0x227/0x430 net/socket.c:2757
 __do_sys_sendmmsg net/socket.c:2784 [inline]
 __se_sys_sendmmsg net/socket.c:2781 [inline]
 __x64_sys_sendmmsg+0xa0/0xc0 net/socket.c:2781
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0xfa/0xfa0 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7fdaa258ebe9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc3b406218 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007fdaa27c5fa0 RCX: 00007fdaa258ebe9
RDX: 0000000000000001 RSI: 0000200000004140 RDI: 0000000000000006
RBP: 00007fdaa2611e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fdaa27c5fa0 R14: 00007fdaa27c5fa0 R15: 0000000000000004
 </TASK>
==================================================================

Crashes (13):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/06 13:57 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 11:48 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 11:23 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 10:31 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 08:25 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 07:24 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 07:16 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 05:05 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 04:59 linux-next be5d4872e528 d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 03:38 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 03:37 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 03:36 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
2025/09/06 03:35 linux-next be5d4872e528 d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in crypto_nhpoly1305_update_helper
* Struck through repros no longer work on HEAD.