Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 77880483BF9 for ; Thu, 24 Sep 2026 15:12:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790262774; cv=none; b=TKMVa1VR8WgkRL98CGQCDNO6WsJpjOO/h0MqKnn0y2cjUqZhG0waRTWf6kLiP2sSqzBljhbF18XCa9grAVkAe13ORWsjc8mxIDeiNmktRNnaYBkvs4PzWJ+VAflpcH0TXNlhofc/6sdJGNEA03vTuXaVvzzz1dBbt8k+AvVn40k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790262774; c=relaxed/simple; bh=4L613cmqQ3AwLkUEYhPvgnyjPMbyFMBpZfqFp8FyL+0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZZPF+2t/sdt/Isn5uivM1UJp0Gu6to2BCXjxjIzbnzs/wLWCouyOfvybQ9EeLsp4/+FkaUSjayvVVSesnfhVYrC/FZqMipaVEpWq2f0hx/yQXSM3mQoLQtc1DTIDTOKzWqHwvjNnbrU7uxtcVCQBQJwx0RtG190SfiblJvGmq+g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1G4CJruJ; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="1G4CJruJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DC371F000FF; Thu, 24 Sep 2026 15:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790262771; bh=9Ny5byDrKYWj7rkXQVMEdhXfKtmq8Kab73k4uqbdUOw=; h=From:To:Cc:Subject:Date:Reply-To; b=1G4CJruJunmHC4WqemEujF0OrIQOA29GGpvsbUB9Q8vezOIF61bPZbFMXOjxTqSxW RaVOB+UMkMb0Qx01LPbrpmC4S+6HOqb5lxPAkMT8FFI0w782J6A/xH16/DebBCukM1 MOhAYJ2bBDxpFUYWPo+PtAdXLtLwfylUaEIaDsog= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93212: nfsd: guard nfsd_serv deref in nfsd_file_net_dispose Date: Thu, 24 Sep 2026 17:10:48 +0200 Message-ID: <2026092444-CVE-2026-93212-af45@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3312; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2Ebk2hpA1T9vOuyJryElfQNVaxT/CBHiEPibHU53WMo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbbUtmtOzadfTc9OID15Xqizc/WeHVuDfsQB/T1IrSA 37+TL6bO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiRv8ZZjE/f3qtZaJq69ND OkI7bSdOeROcuYBhwRJh6Zoq7dp2iaWX3n3pv931VFCKDwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: nfsd: guard nfsd_serv deref in nfsd_file_net_dispose nfsd_file_net_dispose() is the consumer side of l->freeme: the nfsd service thread loop calls it to drain entries that the filecache garbage collector and shrinker append via nfsd_file_dispose_list_delayed(). During per-net teardown, nn->nfsd_serv is cleared before the filecache laundrette is shut down, so the service thread can still run a dispose pass that finds more than eight entries on l->freeme and dereferences a NULL svc_serv: nfsd service thread loop nfsd_file_net_dispose(nn) if (!list_empty(&l->freeme)) { ... svc_wake_up(nn->nfsd_serv); /* nn->nfsd_serv == NULL */ } The sibling helper nfsd_file_dispose_list_delayed() already documents this ordering and caches nn->nfsd_serv into a local before testing it for NULL. nfsd_file_net_dispose() was introduced with the same raw svc_wake_up(nn->nfsd_serv) call and never picked up the guard. Fix by loading nn->nfsd_serv into a local svc_serv pointer and only calling svc_wake_up() when it is non-NULL, matching the pattern in nfsd_file_dispose_list_delayed(). The Linux kernel CVE team has assigned CVE-2026-93212 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit ffb402596147ac583f3464ff5c48feb9423e3838 and fixed in 6.12.109 with commit f4776c1c4b38fbc459420321c8ece87d0f7f95fb Issue introduced in 6.9 with commit ffb402596147ac583f3464ff5c48feb9423e3838 and fixed in 6.18.50 with commit 59baf45a06435194005fc5fa9a42d89f77a30432 Issue introduced in 6.9 with commit ffb402596147ac583f3464ff5c48feb9423e3838 and fixed in 7.2.4 with commit 766170b4fd2daaf5c4d6735560101474e18edab6 Issue introduced in 6.9 with commit ffb402596147ac583f3464ff5c48feb9423e3838 and fixed in 7.3-rc1 with commit 9f1ddfc8cb9076592401a611eb3a44d36186d014 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-93212 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/filecache.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/f4776c1c4b38fbc459420321c8ece87d0f7f95fb https://git.kernel.org/stable/c/59baf45a06435194005fc5fa9a42d89f77a30432 https://git.kernel.org/stable/c/766170b4fd2daaf5c4d6735560101474e18edab6 https://git.kernel.org/stable/c/9f1ddfc8cb9076592401a611eb3a44d36186d014