mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: syzbot <syzbot+b9529ebe6a9394ddf825@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org, syzkaller-bugs@googlegroups.com
Subject: Forwarded: Re: KASAN: slab-out-of-bounds Read in ecryptfs_verify_auth_tok_from_key
Date: Wed, 16 Sep 2026 19:46:20 -0700	[thread overview]
Message-ID: <6aab547c.b398a7c9.1f86be.000b.GAE@google.com> (raw)
In-Reply-To: <6aaabb70.86093f18.33004f.0003.GAE@google.com>

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

***

Subject: Re: KASAN: slab-out-of-bounds Read in ecryptfs_verify_auth_tok_from_key
Author: neganhat@gmail.com

#syz test: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
master

diff --git a/fs/ecryptfs/ecryptfs_kernel.h b/fs/ecryptfs/ecryptfs_kernel.h
index xxxxxxx..xxxxxxx 100644
--- a/fs/ecryptfs/ecryptfs_kernel.h
+++ b/fs/ecryptfs/ecryptfs_kernel.h
@@ -xx,6 +xx,9 @@ ecryptfs_get_key_payload_data(struct key *key)
  if (!ukp)
  return ERR_PTR(-EKEYREVOKED);

+ if (ukp->datalen < sizeof(struct ecryptfs_auth_tok))
+ return ERR_PTR(-EINVAL);
+
  return (struct ecryptfs_auth_tok *)ukp->data;
 }

  parent reply	other threads:[~2026-09-17  2:46 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-16 15:53 [syzbot] [ecryptfs?] " syzbot
2026-09-17  1:53 ` Edward Adam Davis
2026-09-17  2:10   ` syzbot
2026-09-17  2:22 ` Edward Adam Davis
2026-09-17  2:46   ` syzbot
2026-09-17  2:46 ` syzbot [this message]
2026-09-17  2:54 ` Forwarded: " syzbot
2026-09-17  3:04 ` syzbot
2026-09-17  3:15 ` syzbot
2026-09-17  3:36 ` syzbot
2026-09-17  3:39 ` [syzbot] [ecryptfs?] " Edward Adam Davis
2026-09-17  4:15   ` syzbot
2026-09-17  3:53 ` Forwarded: " 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=6aab547c.b398a7c9.1f86be.000b.GAE@google.com \
    --to=syzbot+b9529ebe6a9394ddf825@syzkaller.appspotmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=syzkaller-bugs@googlegroups.com \
    /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

all inboxes | Powered by JetHome®