Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099063; b=Wgu7PAjFdfkpeNpODt6ryvx3loF1nnoxd9vuEvaGrJYzp6URsjyw2bJ+kz49iOuwzPGb 2t4KhBJ3Chyl66BctLLVxC6NutYglLWKs7GGyv3dE6Jw9GO2XN1UrVbru2frXcour4jC4 ClbZHHa/P/aDSkdjsH9nqMIp25TqglWaUbRUCB26idPQCAaCIJnMa+RlFk4kKmOBfs6jS rPWrb1m6dj3WDfJF0WgqX/LpK223Jg8zvZxNfdR4qfjuQZvIDmp7wKUEjtNcFjeqSTyW+ 0Ph92arL0UokXe2bWZIoHZRCFH6P6IE6jR29aL7dTi8un4giLbcoyydWUsua/kfJN9g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099063; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Y78TBURpEk8HgMFHAv+8wlvwaA+W8vdVdLXgxDUETmU=; b=GLmqF8L3o5hReO58zdUfBAJmEliQhDmqXCT3Jib4p2qp69bJB5tB+oFB8vM1vKK0SoTz gsvtdEe1ILn6p+FCADyHeYEVvkQ7IkZ+XWhdAeumQfYOhPeYGPyrK8pttFYtNs+2H8RSr mxd5bDB+O1N+Em/bm25rTpidRm6AaPV/Zgnkqz5vm1ge4d7Z6Gx0VN7E9LJw0HquEba/O gJleVGPq/5lwP6Gmh9QyEFTeGzVfROKW3Wj6n+ssRbT19kF8Qx+CHfqsIzzMTEWMe9eS8 lx3FzuTRgrEJTJONj8B0BJs6Qf83VE6aYVU3k7fbmUP0i7hgrK7bWjozzCJe2P6nESw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=UJpuXwbD; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ECF44606A326 for ; Thu, 19 Nov 2026 14:37:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=UJpuXwbD Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EE731F000C4; Thu, 19 Nov 2026 14:37:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099062; bh=Y78TBURpEk8HgMFHAv+8wlvwaA+W8vdVdLXgxDUETmU=; h=From:To:Cc:Subject:Date:Reply-To; b=UJpuXwbDHeo/3twINUmUuxgbUkEghu4vn8MJOiCIvPsu2R+TqJIPF71ww897QtdoT t8kIlXjM2QabrSbdgC8h1TFIiatsssjuCxZkVXyB5nlhNOgLnVlUr2atvFdS9nC/T+ TlItVtamVwGT6L/G+3jKv6ZUmeVHZZIa8HsnKkbY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99363: NFSD: Map flex file layout IDs through the request's user namespace Date: Thu, 19 Nov 2026 15:24:21 +0100 Message-ID: <2026111950-CVE-2026-99363-732f@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3506; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y2tJecNsJMxDLNQfGgQqIZBdt8wHGRG0lc2CxB79K8o=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2cqeLqy0F/5RsTe+3UaDK/d8a02Jod73kGmS5854r PI7ffddRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkeT7DPD1pz2wP6dtClxOY 7b9ebe+vfa0dwTA/oKSFpe5YiHuYI/NO87P7WhfHzNwEAA== 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: Map flex file layout IDs through the request's user namespace nfsd4_ff_proc_layoutget() and nfsd4_ff_encode_layoutget() translate the file's owner and group with init_user_ns, but every other identity nfsd places on the wire goes through nfsd_user_namespace(). When the transport carries a credential from a non-initial user namespace, the flex file layout reports host-global IDs. The client copies those IDs into the AUTH_SYS credential it presents to the data server, and svcauth_unix_accept() resolves that credential in the transport's namespace, so data server I/O runs under an identity unrelated to the file's owner. Switching to the request's namespace introduces a second hazard. from_kuid() returns (uid_t)-1 when the target namespace has no mapping for the owner, and the IOMODE_READ arm adds one to that result to derive an identity for which the data server denies writes. The addition would wrap to zero, handing the client uid 0 instead of an identity distinct from the owner. Translate both IDs in nfsd4_ff_proc_layoutget(), which has the svc_rqst, and carry the wire values in struct pnfs_ff_layout. from_kuid_munged() substitutes overflowuid for an unmapped owner and thus never returns (uid_t)-1, so the increment cannot wrap to zero. The Linux kernel CVE team has assigned CVE-2026-99363 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit 9b9960a0ca4773e21c4b153ed355583946346b25 and fixed in 6.12.118 with commit e10bf0e125ebf6b9669b3158eda5fa67b56809d4 Issue introduced in 4.8 with commit 9b9960a0ca4773e21c4b153ed355583946346b25 and fixed in 6.18.61 with commit 76bb89e8155fe29da36ecf0121e9e98afc0f4184 Issue introduced in 4.8 with commit 9b9960a0ca4773e21c4b153ed355583946346b25 and fixed in 7.3.2 with commit c0dacde381e1311bba8074e660d41ecc57c3bd2b Issue introduced in 4.8 with commit 9b9960a0ca4773e21c4b153ed355583946346b25 and fixed in 7.4-rc1 with commit f913d5d2130a584d1a027ffe3dfd88b6be2e0540 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-99363 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/flexfilelayout.c fs/nfsd/flexfilelayoutxdr.c fs/nfsd/flexfilelayoutxdr.h 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/e10bf0e125ebf6b9669b3158eda5fa67b56809d4 https://git.kernel.org/stable/c/76bb89e8155fe29da36ecf0121e9e98afc0f4184 https://git.kernel.org/stable/c/c0dacde381e1311bba8074e660d41ecc57c3bd2b https://git.kernel.org/stable/c/f913d5d2130a584d1a027ffe3dfd88b6be2e0540