]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
NFS: Fix filehandle bounds checking in nfs_fh_to_dentry()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 22 Jul 2025 13:24:58 +0000 (09:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Aug 2025 10:05:09 +0000 (12:05 +0200)
commit763810bb883cb4de412a72f338d80947d97df67b
tree5da139431df45413b0b6f5eeaa76fac94e17b576
parent78382f219ea62a9b255274b574828129a8c3d7e3
NFS: Fix filehandle bounds checking in nfs_fh_to_dentry()

[ Upstream commit ef93a685e01a281b5e2a25ce4e3428cf9371a205 ]

The function needs to check the minimal filehandle length before it can
access the embedded filehandle.

Reported-by: zhangjian <zhangjian496@huawei.com>
Fixes: 20fa19027286 ("nfs: add export operations")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/export.c