The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: syzbot <syzbot+35790eb7861f8fc57382@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Forwarded: [PATCH] Fix UAF in configfs
Date: Wed, 29 Jul 2026 01:51:23 -0700	[thread overview]
Message-ID: <6a69bf0b.d9e86bb5.297b12.0058.GAE@google.com> (raw)
In-Reply-To: <6a69447e.6bd615f2.c0aa.0000.GAE@google.com>

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

***

Subject: [PATCH] Fix UAF in configfs
Author: jeffinphilip14@gmail.com

#syz test
---
 fs/configfs/configfs_internal.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/configfs/configfs_internal.h b/fs/configfs/configfs_internal.h
index acdeea8e2d69..337e313651e7 100644
--- a/fs/configfs/configfs_internal.h
+++ b/fs/configfs/configfs_internal.h
@@ -124,8 +124,9 @@ static inline struct config_item *configfs_get_config_item(struct dentry *dentry
 	spin_lock(&dentry->d_lock);
 	if (!d_unhashed(dentry)) {
 		struct configfs_dirent * sd = dentry->d_fsdata;
-		item = config_item_get(sd->s_element);
+		item = config_item_get_unless_zero(sd->s_element);
 	}
+
 	spin_unlock(&dentry->d_lock);
 
 	return item;
-- 
2.55.0


  parent reply	other threads:[~2026-07-29  8:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-29  0:08 [syzbot] [fs?] WARNING: refcount bug in config_item_get syzbot
2026-07-29  8:21 ` Forwarded: syzbot
2026-07-29  8:51 ` syzbot [this message]
2026-07-29  8:51 ` 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=6a69bf0b.d9e86bb5.297b12.0058.GAE@google.com \
    --to=syzbot+35790eb7861f8fc57382@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