[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <01e16af7-4f76-40eb-89c2-79386850d756@gmail.com>
Date: Tue, 18 Nov 2025 14:28:59 +0530
From: shaurya <ssranevjti@...il.com>
To: syzbot+87be6809ed9bf6d718e3@...kaller.appspotmail.com
Cc: linux-cifs@...r.kernel.org, linux-kernel@...r.kernel.org,
syzkaller-bugs@...glegroups.com
Subject: Re: [syzbot] [cifs?] memory leak in smb3_fs_context_fullpath
#syz test:
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
diff --git a/fs/smb/client/fs_context.c b/fs/smb/client/fs_context.c
index 0f894d09157b..975f1fa153fd 100644
--- a/fs/smb/client/fs_context.c
+++ b/fs/smb/client/fs_context.c
@@ -1834,6 +1834,12 @@ static int smb3_fs_context_parse_param(struct
fs_context *fc,
ctx->password = NULL;
kfree_sensitive(ctx->password2);
ctx->password2 = NULL;
+ kfree(ctx->source);
+ ctx->source = NULL;
+ if (fc) {
+ kfree(fc->source);
+ fc->source = NULL;
+ }
return -EINVAL;
}
Powered by blists - more mailing lists