CVE-2026-99363: NFSD: Map flex file layout IDs through the request's user namespace
In the Linux kernel, the following vulnerability has been resolved:
NFSD: Map flex file layout IDs through the request's user namespace
nfsd4ffproclayoutget() and nfsd4ffencodelayoutget() translate the file's owner and group with inituserns, but every other identity nfsd places on the wire goes through nfsdusernamespace(). 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 AUTHSYS credential it presents to the data server, and svcauthunixaccept() 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. fromkuid() returns (uidt)-1 when the target namespace has no mapping for the owner, and the IOMODEREAD 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 nfsd4ffproclayoutget(), which has the svcrqst, and carry the wire values in struct pnfsfflayout. fromkuidmunged() substitutes overflowuid for an unmapped owner and thus never returns (uidt)-1, so the increment cannot wrap to zero.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.61 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.2 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.3-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1Fixed in 7.3.5-1