syzbot


KASAN: wild-memory-access Read in __sha512_update

Status: closed as dup on 2025/09/08 18:46
Subsystems: crypto
[Documentation on labels]
Reported-by: syzbot+e37eedd918576774ec80@syzkaller.appspotmail.com
First crash: 5d17h, last: 1d18h
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 1d19h 5d12h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [crypto?] KASAN: wild-memory-access Read in __sha512_update 2 (4) 2025/09/08 18:46
Last patch testing requests (1)
Created Duration User Patch Repo Result
2025/09/08 12:03 50m eadavis@qq.com patch linux-next OK log

Sample crash report:
==================================================================
BUG: KASAN: wild-memory-access in __sha512_update+0x10d/0x1d0 lib/crypto/sha512.c:175
Read of size 2 at addr 0005088000000000 by task syz.0.17/6022

CPU: 0 UID: 0 PID: 6022 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
 __sha512_update+0x10d/0x1d0 lib/crypto/sha512.c:175
 sha512_update include/crypto/sha2.h:734 [inline]
 crypto_sha512_update+0x27/0x40 crypto/sha512.c:151
 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+0x21c/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:0x7f9e1df8ebe9
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:00007ffd2b583528 EFLAGS: 00000246 ORIG_RAX: 0000000000000133
RAX: ffffffffffffffda RBX: 00007f9e1e1c5fa0 RCX: 00007f9e1df8ebe9
RDX: 0000000000000001 RSI: 0000200000000640 RDI: 0000000000000004
RBP: 00007f9e1e011e19 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f9e1e1c5fa0 R14: 00007f9e1e1c5fa0 R15: 0000000000000004
 </TASK>
==================================================================

Crashes (15):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/09/04 14:53 linux-next 4ac65880ebca d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in __sha512_update
2025/09/04 13:43 linux-next 4ac65880ebca d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in __sha512_update
2025/09/04 12:38 linux-next 4ac65880ebca d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in __sha512_update
2025/09/04 11:34 linux-next 4ac65880ebca d291dd2d .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in __sha512_update
2025/09/08 09:45 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 __sha512_update
2025/09/06 17:58 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 __sha512_update
2025/09/05 19:57 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 __sha512_update
2025/09/05 19:55 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 __sha512_update
2025/09/04 13:31 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in __sha512_update
2025/09/04 13:31 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in __sha512_update
2025/09/04 12:08 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in __sha512_update
2025/09/04 11:51 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in __sha512_update
2025/09/04 10:39 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root KASAN: wild-memory-access Read in __sha512_update
2025/09/04 10:27 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in __sha512_update
2025/09/04 10:26 linux-next 4ac65880ebca d291dd2d .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce KASAN: wild-memory-access Read in __sha512_update
* Struck through repros no longer work on HEAD.