[PATCH] cifs: Use after free in debug code

Paulo Alcantara pc at cjr.nz
Fri Nov 18 14:48:08 UTC 2022


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>



More information about the samba-technical mailing list