public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: syzbot <syzbot+94bbb75204a05da3d89f@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] [net?] KASAN: slab-out-of-bounds Read in dns_resolver_preparse
Date: Thu, 14 Dec 2023 05:59:03 -0800	[thread overview]
Message-ID: <000000000000b8e7bb060c78afcc@google.com> (raw)
In-Reply-To: <0000000000009b39bc060c73e209@google.com>

For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.

***

Subject: [net?] KASAN: slab-out-of-bounds Read in dns_resolver_preparse
Author: eadavis@qq.com

please test slab-out-of-bounds Read in dns_resolver_preparse

#syz test https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 48e8992e33ab
diff --git a/security/keys/keyctl.c b/security/keys/keyctl.c
index 10ba439968f7..f28ba8a703fe 100644
--- a/security/keys/keyctl.c
+++ b/security/keys/keyctl.c
@@ -83,7 +83,7 @@ SYSCALL_DEFINE5(add_key, const char __user *, _type,
 	long ret;
 
 	ret = -EINVAL;
-	if (plen > 1024 * 1024 - 1)
+	if (plen > 1024 * 1024 - 1 || plen < 48)
 		goto error;
 
 	/* draw all the data into kernel space */


  reply	other threads:[~2023-12-14 13:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-14  8:15 [syzbot] [net?] KASAN: slab-out-of-bounds Read in dns_resolver_preparse syzbot
2023-12-14 13:59 ` syzbot [this message]
2023-12-14 14:18 ` syzbot
     [not found] ` <tencent_B0E34B701B7025C7BAFDBB2833BB9EE41B08@qq.com>
2023-12-15  3:00   ` [PATCH next] keys/dns: datalen must greater than sizeof(*v1) Jarkko Sakkinen
     [not found]   ` <tencent_7D663C8936BA96F837124A4474AF76ED6709@qq.com>
2023-12-16 21:06     ` [PATCH V2 next] keys/dns: fix slab-out-of-bounds in dns_resolver_preparse Simon Horman
2023-12-23 23:17 ` [syzbot] [net?] KASAN: slab-out-of-bounds Read " David Howells
2023-12-23 23:17   ` syzbot
2023-12-23 23:34 ` David Howells
2023-12-23 23:59   ` syzbot
     [not found] <tencent_1ABB7A33479EB71B484B311B402575BA2008@qq.com>
2023-12-14 14:21 ` syzbot
     [not found] <tencent_2EA5A7E0C6D492E88651C99CAECCAECBCC06@qq.com>
2023-12-14 14:42 ` syzbot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=000000000000b8e7bb060c78afcc@google.com \
    --to=syzbot+94bbb75204a05da3d89f@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox