Skip to contentSkip to conversation

CVE-2026-99360: NFSD: Set nn->cld_net before registering the cld pipe

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Nov 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

NFSD: Set nn->cld_net before registering the cld pipe

rpc_mkpipe_dentry() instantiates the pipe's dentry before it returns, so the cld pipe can be opened as soon as nfsd4_cld_register_net() has run. __nfsd4_init_cld_pipe() does not store the new cld_net in nn->cld_net until after that call. cld_pipe_downcall() reaches the cld_net only through that pointer and takes cn_lock without checking it, so a write() that lands in the window oopses.

Store nn->cld_net once @cn is fully initialized and before the pipe is registered, and clear it again when registration fails.

The Linux kernel CVE team has assigned CVE-2026-99360 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.4 with commit f3f8014862d813cca81a597c83bd1dbf0fb2b8f6 and fixed in 6.12.117 with commit 2cdbc244cf895a436f04def419df3bb257e42608
	Issue introduced in 3.4 with commit f3f8014862d813cca81a597c83bd1dbf0fb2b8f6 and fixed in 6.18.61 with commit c12f04f29dac29fba1f4eafe54455d48b4ca8df0
	Issue introduced in 3.4 with commit f3f8014862d813cca81a597c83bd1dbf0fb2b8f6 and fixed in 7.3.2 with commit d67360912543356aca6fc39e4bb286e08d1c77af
	Issue introduced in 3.4 with commit f3f8014862d813cca81a597c83bd1dbf0fb2b8f6 and fixed in 7.4-rc1 with commit 14996e662f3b734427e2d645cacffc27b779f7d1

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-99360

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/nfs4recover.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/2cdbc244cf895a436f04def419df3bb257e42608
	https://git.kernel.org/stable/c/c12f04f29dac29fba1f4eafe54455d48b4ca8df0
	https://git.kernel.org/stable/c/d67360912543356aca6fc39e4bb286e08d1c77af
	https://git.kernel.org/stable/c/14996e662f3b734427e2d645cacffc27b779f7d1