CVE-2026-43193: nfsd: fix nfs4_file refcount leak in nfsd_get_dir_deleg()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
nfsd: fix nfs4_file refcount leak in nfsd_get_dir_deleg()
Claude pointed out that there is a nfs4_file refcount leak in nfsd_get_dir_deleg(). Ensure that the reference to "fp" is released before returning.
The Linux kernel CVE team has assigned CVE-2026-43193 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.19 with commit 8b99f6a8c116f664a6788737705f6da2772cc96a and fixed in 6.19.6 with commit 0d8362e15aad5b5c1d6a65bb23ac6c45ccf881f3 Issue introduced in 6.19 with commit 8b99f6a8c116f664a6788737705f6da2772cc96a and fixed in 7.0 with commit 789477b849394afdb60507924d65f7ef18f078ce
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-43193
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/nfsd/nfs4state.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/0d8362e15aad5b5c1d6a65bb23ac6c45ccf881f3 https://git.kernel.org/stable/c/789477b849394afdb60507924d65f7ef18f078ce