mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [BUG] ksmbd: OOB read in share_config_request() when payload_sz == 0
@ 2026-08-27 22:38 Farhad Alemi
  2026-08-28  2:36 ` Namjae Jeon
  0 siblings, 1 reply; 5+ messages in thread
From: Farhad Alemi @ 2026-08-27 22:38 UTC (permalink / raw)
  To: Namjae Jeon, Steve French
  Cc: falemi, Sergey Senozhatsky, Tom Talpey, linux-cifs, ChenXiaoSong,
	linux-kernel

Hello Namjae and Steve,

While fuzzing Linux 7.1-rc5 with syzkaller, as part of research at ASU's
SEFCOM lab, we hit the crash below. Crash reports can be found here:

  https://github.com/farhad-alemi/public_bug_reports/tree/main/106-ksmbd-oob-read-share_config_request/

  BUG: KASAN: slab-out-of-bounds in strnlen+0x66/0x90 lib/string.c:432
  kstrndup+0x2d/0x160 mm/util.c:120
  share_config_request fs/smb/server/mgmt/share_config.c:168 [inline]
  ksmbd_share_config_get+0x5e0/0x1190
       fs/smb/server/mgmt/share_config.c:243
  smb2_tree_connect+0x2f4/0x1320 fs/smb/server/smb2pdu.c:2015

Our reproducer.c is available upon request.

Happy to test a patch if that would help.

Regards,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-10-19 23:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-27 22:38 [BUG] ksmbd: OOB read in share_config_request() when payload_sz == 0 Farhad Alemi
2026-08-28  2:36 ` Namjae Jeon
2026-08-29  5:30   ` Farhad Alemi
2026-10-19 19:11   ` [PATCH] ksmbd: accept share config responses from ksmbd-tools before 3.5.3 Michail Andreas Michalopoulos
2026-10-19 23:47     ` Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®