]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
smb: client: fix incomplete backport in cfids_invalidation_worker()
authorHenrique Carvalho <henrique.carvalho@suse.com>
Wed, 26 Nov 2025 13:55:53 +0000 (10:55 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:43:38 +0000 (11:43 +0100)
commit1ebfea90f9f0e4ecac45dba6813fa65fcc889f06
tree8dc250237c04e5cbf316848f6def5839b3c40087
parenta45d6359eefb41e08d374a3260b10bff5626823b
smb: client: fix incomplete backport in cfids_invalidation_worker()

The previous commit bdb596ceb4b7 ("smb: client: fix potential UAF in
smb2_close_cached_fid()") was an incomplete backport and missed one
kref_put() call in cfids_invalidation_worker() that should have been
converted to close_cached_dir().

Fixes: 065bd6241227 ("smb: client: fix potential UAF in smb2_close_cached_fid()")"
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/smb/client/cached_dir.c