[PATCH] cifs: Use after free in debug code

Steve French smfrench at gmail.com
Sat Nov 19 19:59:35 UTC 2022


merged into cifs-2.6.git for-next

On Fri, Nov 18, 2022 at 8:48 AM Paulo Alcantara via samba-technical
<samba-technical at lists.samba.org> wrote:
>
> Dan Carpenter <error27 at gmail.com> writes:
>
> > This debug code dereferences "old_iface" after it was already freed by
> > the call to release_iface().  Re-order the debugging to avoid this
> > issue.
> >
> > Fixes: b54034a73baf ("cifs: during reconnect, update interface if necessary")
> > Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>
> > ---
> >  fs/cifs/sess.c | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
>
> Reviewed-by: Paulo Alcantara (SUSE) <pc at cjr.nz>
>


-- 
Thanks,

Steve



More information about the samba-technical mailing list