Abstract
NFS2ROOT (CVE-2026-99362) lets a client that reaches port 2049 on an unpatched Linux NFS server with NFSv4.1 or 4.2 enabled, and whose request the server’s RPC layer admits, overflow a kernel heap buffer before any user is authenticated. One of its two finders says it turned that into a root shell. Why is a protocol whose implementation began at Sun in 1984 still a way to take over a server? This article treats NFS security as two separate weaknesses. The first is the trust model. Under AUTH_SYS, still the default, the server believes the user ID that each request asserts, so its real controls are which hosts it admits and what its export rules allow. Root squashing remaps user ID 0 and group ID 0 and nothing else. The second is placement. Linux’s NFS server runs in the kernel and processes a stranger’s request before it knows who sent it. Kerberos and RPC-with-TLS address the first weakness, but Linux enforces both per export, after the session-setup code where this bug sits. Patching, restricting who can reach the listener and deciding whether the server belongs in the kernel address the second. Each weakness needs its own plan.
Two weaknesses in one headline
On 19 November 2026 the Linux kernel’s CVE team published CVE-2026-99362. Its description runs to a dozen paragraphs about reply buffers and slot sequence IDs.1 Six days later OpenSec, one of two independent finders, published a branded write-up under the name NFS2ROOT. It opened: “If your Linux server speaks NFS, anyone who can reach port 2049 can own it. No password, no account, no click.”2 Coverage followed in CSO on 27 November, on oss-security on 28 November, and in Security Affairs on 29 November.345
For readers who have run NFS for years, the story is easy to file as one more reminder that NFS has never been secure. This article separates that reaction into two claims. One of them is right and the other is misleading.
The first weakness is the trust model. In NFS’s default security flavour, AUTH_SYS, the client states in every request which user it is acting for, and the server believes it. The protocol’s own standards have described that model as unsafe since at least 2009 (RFC 5531, on RPC) and 2015 (RFC 7530, on NFSv4).67 Any host the export rules admit can therefore assert any representable non-root user ID on the share, and gets whatever access that ID would have. Configuration addresses this weakness: export rules, squashing, Kerberos, TLS with client certificates.
The second weakness is placement. Linux’s main NFS server, knfsd, runs inside the kernel, and it must process a client’s request before it can tell which user sent it. A memory-safety bug anywhere in that early processing is a bug in ring 0 that an unauthenticated peer can trigger. NFS2ROOT belongs to this category. Its overflow sits in the code that encodes and caches replies, not in the input decoder, but the request that triggers it is processed before any per-export security setting is consulted. Kerberos and TLS policies on exports therefore do not touch it. Patching, restricting who can reach the listener, and deciding where the server runs are what address it. The rest of this article keeps the two apart.
What the primary record says about NFS2ROOT
The bug
The CVE record, issued by the Linux kernel CNA, describes the flaw in fs/nfsd/nfs4state.c and gives the fixing commit’s title: “nfsd: preflight SEQUENCE replies before accepting a slot”.1 The mechanism makes sense only against NFSv4.1’s sessions. RFC 8881 requires every NFSv4.1 client and server to use sessions. A COMPOUND that begins with a SEQUENCE operation names a slot, and the receiver “MUST” execute it “exactly once”. Where the reply was cached, a retransmission is answered from the slot’s reply cache. Where it was not, the server instead reports that the reply was not cached (NFS4ERR_RETRY_UNCACHED_REP) and does not re-execute the request. Apart from SEQUENCE, a few client and session operations, such as EXCHANGE_ID, CREATE_SESSION, DESTROY_SESSION and DESTROY_CLIENTID, may open a COMPOUND.8 When a session is created, the client proposes per-channel limits. One of them, ca_maxresponsesize_cached, caps the size of a reply the server will store in the reply cache, and the server “MAY decrease this value, but MUST NOT increase it”.8
The fix’s commit message, written by Jérémy Jean of ANSSI, France’s national cybersecurity agency, describes the failure class. A client can negotiate the cached-reply limit down so far that each slot’s cache buffer has zero length. A reply that does not fit is then mistakenly treated as successfully encoded, and the whole reply is copied into that empty buffer, so that “the client picks most of the bytes written past the end of the slot”. The commit includes a KASAN report: “Write of size 80”.9 The fix checks that the reply fits before the slot is used. For defenders, the implication is that a negotiated, client-influenced size reached a kernel copy without a bounds check. A second commit, authored by NFSD maintainer Chuck Lever from the same patch series, makes the encoder report the failure it had been dropping; its message calls it “a guard rather than a fix”.10
The CVE record documents more than the overwrite. Under confidentiality it explains that a later replay of the cached entry returns the oversized copy to the client, “so the read extends into the adjacent slab object and is returned to the client”. Under availability it says the write “oopses the nfsd thread and can panic the host”.1
The bug came in with commit 47ee52986472, authored by J. Bruce Fields in March 2014, which set out to “simplify session limit enforcement by restricting the xdr buflen to the session size”.11 The CVE record lists Linux 3.16 as the first affected release and eight fixed releases or release candidates: 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.117, 6.18.61, 7.3.2 and the mainline candidate 7.4-rc1.1 OpenSec’s advisory lists only the last four, so a reader who relies on it alone would miss the older long-term branches.2 Ubuntu’s tracker gives a small independent check on the start date: it marks the generic linux package of Ubuntu 14.04, which predates 3.16, as “Not affected”.12
Why it needs no login
The CVE record goes beyond the usual one-line justification and explains each CVSS metric in terms of the code. Its reason for “PR:N” (no privileges required) reads:
EXCHANGE_ID with SP4_NONE, CREATE_SESSION, and SEQUENCE are ALLOWED_WITHOUT_FH and never call fh_verify or check_nfsd_access. svcauth_unix_accept copies the AUTH_SYS uid from the RPC without checking it, and svcauth_null_accept accepts AUTH_NULL; svcauth_unix_set_client only maps the source address to an export.1
The kernel source confirms most of this. In fs/nfsd/nfs4proc.c the three operations carry the flags ALLOWED_WITHOUT_FH | ALLOWED_AS_FIRST_OP.13 In fs/nfsd/export.c, check_nfsd_access() is the function that enforces an export’s TLS policy and its permitted security flavours.14 The secure-port check lives in the file-handle verification path in fs/nfsd/nfsfh.c.15 The three session-setup operations bypass those per-export checks, so sec=krb5p, xprtsec=mtls and secure all act after the code where this bug lives.
The record’s last clause needs one qualification. After the RPC header and credential have been decoded, and before an NFS procedure is dispatched, the RPC layer calls nfsd’s authentication hook, svc_set_client, which nfsd registers with the comment “export authentication”.1617 For AUTH_SYS and AUTH_NULL calls other than the NULL procedure, that hook looks up the source address in the kernel’s auth.unix.ip cache, which maps an address to an authentication domain, not to an export. A negative entry denies the request; a pending lookup or a timeout drops it or closes the connection.1819 RPCSEC_GSS calls follow a different path that does not depend on that lookup succeeding.20 With the nfs-utils version reviewed here, rpc.mountd fills the cache from the client specifications in its loaded export table, and returns no domain for an address that matches none.2122 On that setup, an AUTH_SYS or AUTH_NULL COMPOUND from an address matching no export’s client list should therefore be refused before the NFSv4 code runs. This is my reading of the source, untested, and no advisory states it. It is not a mitigation to rely on in place of patching and listener controls.
For admitted requests, the attacker needs no account, no Kerberos ticket, no file handle and no mount.
What OpenSec claims, and what is independently established
OpenSec says one connection writes “61 bytes past a kernel heap object”, most of them chosen by the client, and that it chained ordinary NFS requests into a root shell, shown in a recording. It says the exploit “stays private”. According to the company, its automated harness, Antara, flagged the bug on 21 September 2026, scored it and built the exploit without human involvement, and OpenSec reported the bug with exploit and patch to the maintainers and security@kernel.org on 22 September.2 These are the company’s statements. The kernel record independently documents an out-of-bounds heap write with client-chosen content, a disclosure of adjacent heap memory, and a possible host panic.1 Remote root code execution is plausible from those primitives. The only public evidence for it is OpenSec’s own.
The scorers disagree on one metric. The CNA gives 9.8, with integrity impact High; Red Hat gives 9.4, rating integrity impact Low. Both assess the bug as needing no privileges.123 NVD lists the record as “Received”, meaning it has not published its own analysis.24 The CVE Program’s record shows the kernel CNA reserved the identifier on 25 September and published it on 19 November 2026 at 14:22 UTC. OpenSec’s timeline and Security Affairs both give 20 November.125 Security Affairs reports that OpenSec is not aware of exploitation in the wild.5
Two finders, and the evidence about machine help
CSO reported that “two researchers, one using an AI agent” found the flaw independently.3 OpenSec’s claim is the AI discovery: it says Antara found and exploited the bug.2 Jean’s fix, authored on 18 August 2026 (UTC) and applied by Lever on 14 September, carries the trailer “Assisted-by: Codex:gpt-5”.9 That trailer shows an AI tool was involved in producing the patch. It does not say when Jean found the bug or what the tool did. The public metadata gives Jean’s author and commit dates only, not a discovery date.
Who is exposed
OpenSec’s checklist gives four conditions: an unpatched kernel, the in-kernel nfsd running, NFSv4.1 or 4.2 enabled (the default), and port 2049 reachable on an address other than loopback.2 Red Hat’s statement narrows the population: “Default Red Hat Enterprise Linux configurations do not run or enable the in-kernel NFS server daemon (nfsd)”, and machines that are only NFS clients are not exposed.23 CSO lists Kubernetes container networks, build servers, and embedded and NAS devices “which might be running older kernel versions and can only be patched with firmware updates”.3
Distribution status on 1 December differed. Red Hat had shipped RHEL 8 kernel fixes on 26 November and listed its OpenShift CoreOS images as affected.23 Debian’s tracker showed fixed kernels in bookworm-security (linux 6.1.192-3, plus linux-6.12 6.12.118-1~deb12u1) and in trixie (6.12.117-1), while the base bookworm package was still marked vulnerable.25 Ubuntu’s tracker marked the generic linux package “Vulnerable” for 24.04 LTS and 22.04 LTS, among other releases, with separate rows for other kernel flavours.12
1984: a protocol for a building full of workstations
Sun’s 1985 USENIX paper on NFS records that “Implementation of the NFS started in March 1984.” The design assumed that clients and servers share one numeric user and group ID space, which the paper proposed to maintain with Sun’s Yellow Pages directory service.26
The paper made two choices that still shape the protocol. The first was statelessness: “the server does not keep track of any past requests. This makes crash recovery very easy; when a server crashes, the client resends NFS requests until a response is received, and the server does no crash recovery at all.”26 RFC 1094, Sun’s 1989 specification of NFS version 2, gives the same reason: “it may be worth a bit of extra complexity in the protocol to be able to write very simple servers that do not require fancy crash recovery.”27
The second was identity. RPC let NFS plug a UNIX-flavour authenticator into each call’s header to carry the caller’s user ID, group ID and groups, and the server used them “to do permission checking as if the user making the call were doing the operation locally.”26 The designers knew the limits. A shared numeric UID space across the network “is not acceptable in the long run”. Mapping root to nobody before access checks helped, but “the super-user on a client machine can still gain access by using su to change her effective-uid to the uid of the owner of a remote file.” Under “Better Security” they noted “problems in the current implementation of the NFS with clients impersonating other clients” and planned “a better authentication scheme that uses public key encryption.”26
RFC 1094 described the same model four years later. It says the protocol “does not define the permission checking used by servers” and expects servers to use AUTH_UNIX-style credentials, which in practice means the whole network shares one UID and GID space. As for root, “anyone who can become super-user on their workstation could gain access to all remote files”, so “The UNIX server by default maps user id 0 to -2”.27
The 1984 design trusted the client by intent, and its designers said they meant to improve on it. Stronger flavours did appear in the specifications: RFC 1094 already lists AUTH_DES among the flavours NFS uses, and RFC 2623 later describes AUTH_DH as using “DES encryption and public keys”.2728 Whether AUTH_DES descends directly from the paper’s plan is not something these sources show. AUTH_SYS remained the default, and RFC 5531 now calls AUTH_DH “obsolete and insecure”.6
Statelessness did not last either, and the way it ended bears on NFS2ROOT. NFSv4.0 was already stateful: RFC 7530 says “Integrating locking into the NFS protocol necessarily causes it to be stateful.”7 NFSv4.1 added sessions, listing “Lack of support for Exactly Once Semantics (EOS)” among the shortcomings of earlier versions and remedying it with a bounded reply cache.8 NFS2ROOT lives in that cache. Its size is negotiated with a client that has not been authenticated as any user. The client proposes the limit and the server may only lower it.8 The 1989 argument held that server state is costly because it must be rebuilt after a crash. This bug shows a further cost: state whose dimensions a stranger helps to set.
What AUTH_SYS puts on the wire
RPC (RFC 5531, the current revision of Sun’s ONC RPC) frames every NFS call the same way. Over TCP, each record fragment carries a four-byte header holding a last-fragment bit and a 31-bit length, and one RPC message fits into one record.6 The message itself is encoded in XDR, which represents every item in a multiple of four bytes.29 For an NFSv4 request from a client asserting user 1000:
| Field | Value on the wire | How Linux treats it |
|---|---|---|
| Fragment header | last-fragment bit plus 31-bit length | framing |
xid | client-chosen transaction ID | matches replies |
mtype | 0 (CALL) | RPC layer |
rpcvers, prog, vers, proc | 2, 100003 (NFS), 4, 1 (COMPOUND) | RPC dispatcher |
cred.flavor | 1 (AUTH_SYS) | selects the decoder |
cred.body.stamp | any 32-bit value | ignored |
cred.body.machinename | up to 255 bytes | length checked, content ignored |
cred.body.uid | 1000 | mapped through the user namespace, otherwise unverified |
cred.body.gid, gids<16> | primary group and up to 16 supplementary groups | count checked, values unverified |
verf.flavor, length | 0 (AUTH_NONE), 0 | must be empty |
| COMPOUND arguments | tag, minor version, list of operations | NFSv4 decoder |
The program number 100003 comes from RFC 1094, COMPOUND as procedure 1 from RFC 7530, and the credential layout from RFC 5531.2776 RFC 5531 says the verifier accompanying an AUTH_SYS credential should have the AUTH_NONE flavour, and that the credential “is only unique within a particular domain of machine names, uids, and gids.” Its security considerations are blunter: “AUTH_SYS ... is known to be insecure due to the lack of a verifier to permit the credential to be validated. AUTH_SYS SHOULD NOT be used for services that permit clients to modify data.”6
Linux implements this credential in svcauth_unix_accept(). A comment at the top reads: “This implementation ignores the length of the Call’s credential body field and the timestamp and machinename fields.” The function bounds-checks the machine name and the group count, maps the user and group IDs through the user namespace of the transport’s credentials, and requires an empty AUTH_NULL verifier, which is stricter than the RFC’s “should”.18 None of these checks establishes who the user is, because nothing in an AUTH_SYS request can. RFC 9289 makes the same point about the machine name: it “does not have to match the DNS hostname of the sending host”, and “receivers typically ignore its content.”30
The server cannot distinguish a request from user 1000’s process on a managed workstation from one built by any program on any host whose address the exports admit. The trust goes to the address, and the user ID is whatever that host writes. RFC 7530 states it directly: “the client was the entire machine, or at least the source IP address of the machine ... While such a model is easy to implement and simple to deploy and use, it is certainly not a safe model.”7
Dan Farmer and Wietse Venema’s 1993 paper “Improving the Security of Your Site by Breaking Into It” used a world-exported home directory to show the consequence: an attacker who controls a client can present the owner’s numeric ID and is treated as the owner.31 The lesson has not changed. On a share exported with sec=sys, root on an admitted client can assert any representable non-zero UID. Whether that yields access to a file still depends on squashing, ro and the file’s permissions for that UID.
NFSv4 was expected to change identity handling, and in one respect it did. File owner and group attributes are strings in user@dns_domain form, translated by an ID-mapping service.7 Those attributes are separate from the RPC credential. With AUTH_SYS, Linux by default sends and accepts the attributes in numeric form as well: under nfsd.nfs4_disable_idmapping, which defaults to 1, the server “will return only numeric uids and gids to clients using auth_sys, and will accept numeric uids and gids from such clients”.32 Turning ID mapping on changes how ownership is written in attributes. The credential on each call is still the client’s unverified number.
The export file: what each option does and does not stop
Linux export rules, documented in exports(5), are where most administrators meet the trust model. This example is plausible for a build and home-directory server:
/srv/home 10.20.0.0/16(rw,sync,root_squash,no_subtree_check)
/srv/build *.ci.example.internal(rw,no_root_squash,insecure)
/srv/scratch *(rw,all_squash,anonuid=65534,anongid=65534)
/srv/secure 10.30.5.0/24(rw,sec=krb5p,xprtsec=mtls)
/srv/datasets 10.20.0.0/16(ro,sec=krb5i:sys)Host matching
Each line names a path, followed by client specifications that decide which hosts may use the export. With AUTH_SYS, host matching is the only check on who the client is. Authorisation comes afterwards, from ro, squashing and ordinary file permissions. A client specification identifies a host by its IP address. A CIDR range such as 10.20.0.0/16 is the most predictable form. Hostname wildcards are less predictable. Per exports(5), *.cs.foo.edu “will also match all hosts within any subdomain of cs.foo.edu”, because the wildcard matches dots, and “Wildcard characters generally do not work on IP addresses, though they may work by accident when reverse DNS lookups fail.”33 An export to *.ci.example.internal depends on whoever controls reverse DNS for the client’s address. A lone * matches every client.33 CERT’s 1994 advisory on NFS already told administrators to “Export only to fully qualified hostnames” and to keep export lists short enough to avoid a known mountd bug.34
In this file, /srv/scratch may matter beyond its own share. On the nfs-utils setup described earlier, its * would give every address a positive answer at the RPC address check, and so a path to the NFSv4.1 session code for AUTH_SYS and AUTH_NULL calls. It would not grant access to the other shares.
secure and insecure
The default secure “requires that requests not using gss originate on an Internet port less than IPPORT_RESERVED (1024)”.33 On a client operating system that reserves those ports for root, a low source port indicates that a privileged process sent the request. It does not show that the request came from the kernel’s NFS client. RFC 2623 called the protection weak in 1999: on many systems there is no constraint on binding, a desktop user may know the root password, and “the use of privileged ports and port monitoring for security is at best an inconvenience to the attacker and SHOULD NOT be depended on.”28 secure is still worth keeping. It raises the bar for unprivileged users on clients that enforce reserved ports. It should not be counted as authentication. For NFS2ROOT it makes no difference, because the port check sits in file-handle verification and session setup does not reach it.151
root_squash and no_root_squash
Root squashing is the default. In Linux it replaces a credential’s user ID 0, its primary group 0 and any supplementary group 0 with the export’s anonymous IDs, 65534 unless overridden.3533 What the request can then do depends on the remapped credential and the server’s permissions. The man page states the limit plainly: root squashing “does not apply to any other uids or gids that might be equally sensitive, such as user bin or group staff.”33 It does nothing about ordinary users either. On /srv/home, root on any host in 10.20.0.0/16 cannot act as root on the share but can present the UID of every user who owns a home directory there, as the 1985 paper predicted.26
no_root_squash, which exports(5) describes as “mainly useful for diskless clients”, removes even that.33 On /srv/build any host that matches the wildcard can act as UID 0 on the share, subject to rw and the server’s own controls. That includes creating a root-owned file with the setuid bit set, where the server’s filesystem and security policy allow it. Whether that file ever runs as root depends on where it is executed: a client that mounts the share without nosuid, or a process on the server that executes from the exported path. In a build farm scenario where several CI runners write shared output and one is compromised, the outcome depends on whether the server allows the setuid file to be created and whether anything executes it without nosuid.
Managed services often ship this behaviour by default. Google Cloud’s Filestore exports to “every internal IP address in the VPC network” with no_root_squash, “so all users and groups, including the root user, are expected to be the same on both the Filestore instance and the client”. Clients on non-RFC 1918 ranges must be granted access explicitly.36 Amazon EFS documents “No root squashing” unless an IAM policy withholds the ClientRootAccess permission.37
all_squash, anonuid and anongid
all_squash maps every user to the anonymous identity, and anonuid/anongid choose which identity that is.3335 On that export, UID impersonation achieves nothing, because every admitted client user becomes the same configured user. Per-user permissions are lost in exchange. The option suits exports whose data has one owner in practice: scratch space, single-application volumes, many container workloads. EFS access points provide a managed equivalent for requests made through them; they “can enforce a user identity, including the user’s POSIX groups, for all file system requests that are made through the access point”. Without an access point, “the user ID and group ID provided by the client is trusted”.3837
subtree_check, subdirectory exports and file handles
A file handle is the server’s opaque name for a file. In NFSv2 it was a 32-byte blob.27 If an export covers only a subdirectory of a filesystem, the server must decide whether a presented handle points inside that subdirectory. exports(5) warns that “it may be possible for a malicious user to access files on the filesystem outside of the exported subdirectory, by guessing filehandles for those other files”, and that “The only way to prevent this is by using the subtree_check option, which can cause other problems.”33 Since nfs-utils 1.1.0 the default has been no_subtree_check, as on /srv/home, because subtree checking “tends to cause more problems than it is worth”.33 The safe pattern is to export whole filesystems.
The attack has a long history. CERT’s advisory CA-91:21 of 6 December 1991 shipped a SunOS patch for fsirand because the old behaviour “could allow a remote system user to guess NFS file handles”.39 RFC 2623 explained why guessing matters: servers that check access only at mount time can be bypassed “by either stealing a file handle ... or guessing a file handle”, after which the attacker must “impersonate a user’s credentials, which is simple for AUTH_SYS”. It concluded that servers “SHOULD check the client’s authorization on each NFS request.”28
Linux 7.1 added a sign_fh export option. The server appends a MAC, keyed by a secret it holds, to each file handle it issues for that export, and treats a handle whose MAC does not verify as stale.4041 The kernel documentation is precise about the limits. Guessed handles could “bypass path-based permissions (though they still remain subject to inode-level permissions)”. Signing provides “integrity and authenticity but not confidentiality”. The key is “per-network-namespace and must be set before any exports using sign_fh become active”, and changing it makes existing handles fail with “Stale file handle” errors.41 Signing proves that the server issued a handle. It says nothing about which client or tenant may use it.
Kubernetes raises a related but different question. The NFS CSI driver provisions a volume “by creating a new sub directory under the NFS server”, inside a share that already exists.42 Those volume directories are not separate server exports, so the server enforces no boundary between them beyond ordinary file permissions. Each pod is normally confined to its volume by the node’s mount, not by anything the NFS server checks. That is adequate where every client node is trusted. It is not a tenant boundary against a client host that can send its own RPCs.
sec= and xprtsec=
sec= restricts an export to listed security flavours: sys (“the default--no cryptographic security”), krb5, krb5i and krb5p.33 xprtsec= restricts it to clients that have negotiated RPC-with-TLS, either without (tls) or with (mtls) a client certificate. The default when TLS is enabled is none:tls:mtls, which permits all three.33 /srv/secure is the strongest line in the file. /srv/datasets, with sec=krb5i:sys, shows a common mistake: listing sys alongside Kerberos leaves the weaker flavour available to any client that chooses it.
Both options are attributes of an export, enforced through check_nfsd_access() when a request touches that export.14 They decide who may read and write /srv/secure. They do not decide who may set up an NFSv4.1 session, because EXCHANGE_ID, CREATE_SESSION and SEQUENCE bypass that check.113 A client with no Kerberos ticket and no certificate, whose request the RPC layer admits, can reach the NFS2ROOT code on a server whose every export reads sec=krb5p,xprtsec=mtls. This follows from the CVE record’s PR:N explanation and the location of the checks in the source; the vendors have not stated it in these terms.
Kerberos: mandatory to implement, optional to use
The cryptographic answer to the trust problem is old. RPCSEC_GSS, which carries GSS-API mechanisms such as Kerberos V5 inside RPC, was specified in RFC 2203 in September 1997.43 RFC 2623 in June 1999 defined how NFS uses it and the three pseudo-flavours administrators still type: 390003 krb5, 390004 krb5i and 390005 krb5p, mapped to the services none, integrity and privacy.28 The algorithms RFC 2623 listed for Kerberos at the time (DES MAC MD5 for integrity and “56 bit DES” for privacy) belong to that era. The service levels are what has lasted. With Kerberos the credential in each call is tied to a security context that the client established with a ticket for a named principal. RFC 2623 said of the earlier encrypted flavours, AUTH_DH and Kerberos 4, that “a malicious user must know another user’s network password or private key to masquerade as that user”.28
The three services protect different things. RFC 2203 says the RPC header is integrity-protected in every case, “so the sender will still be authenticated”, but with the none service the procedure arguments travel unprotected, so someone in the path can alter a WRITE.43 With integrity, the sender adds a keyed checksum computed with GSS_GetMIC() over a sequence number and the arguments. With privacy, the same data is wrapped with GSS_Wrap(), which encrypts it.43 RFC 7530 warns that a deployment permitting weaker flavours should still protect two operations with integrity. One is SECINFO, because “an attacker in the middle could modify results such that the client might select a weaker algorithm”. The other is a GETATTR of fs_locations, which an attacker could use to redirect a client’s traffic “to a server controlled by the attacker”.7
NFSv4 made Kerberos mandatory to implement. “NFSv4 clients and servers MUST support the Kerberos V5 security mechanism”, and RPCSEC_GSS “MUST be used to enable the mandatory-to-implement security mechanism”. The same RFC adds: “being REQUIRED to implement does not mean REQUIRED to use; AUTH_SYS can be used by NFSv4 clients and servers.”7
RFC 9289 explains why AUTH_SYS persists. “The use of AUTH_SYS remains common despite the adverse effects that acceptance of User Identifiers (UIDs) and Group Identifiers (GIDs) from unauthenticated clients brings with it.” The only well-defined alternative is “expensive at scale. For instance, administrators must provide keying material for each RPC client, including transient clients.” Host and user identity “typically must be enforced in the same security realm”, which fits badly where “cloud providers ... might prefer to remain authoritative for host identity but allow tenants to manage user identities”.30 The RFC gives no adoption figures, and none were found for this article. Beyond the two costs it names, per-client keying material and coupled host and user identity management, deployments also have to run a KDC, keep user credentials valid for long-running work and keep ID mapping consistent on both ends. How heavy each is depends on the deployment. Some cloud offerings remove the choice: Azure Files’ NFS shares “require network-level access controls in place of user-based authentication” and list Kerberos authentication among unsupported features.44 Filestore offers Kerberos with NFSv4.1.36
What Kerberos buys is specific. It addresses the first weakness for users who authenticate with it. A compromised client can still misuse whatever usable credentials are present on it, such as cached tickets of logged-in users or a machine credential. Which identities that exposes depends on how credentials are obtained and stored. Kerberos does nothing for the second weakness. In Linux, RPCSEC_GSS context creation is “handled largely by upcalls to user-space”, but the RPC header, the GSS credential and every message are received and processed in the kernel, and NFSv4.1 session setup does not consult the export’s flavour list.201
RPC-with-TLS: encrypting the conversation without naming the user
RFC 9289, published in September 2022 by Trond Myklebust and Chuck Lever, takes the other route. It leaves user authentication alone and protects the transport. A client sends a NULL RPC with a new flavour, AUTH_TLS. If the server answers with the “STARTTLS” token, the two run a TLS handshake on the same connection, and RPC traffic then flows inside it.30 The motivation section lists “Encryption by Default”, “Decoupled User and Host Identities” and, “Most critically”, “Securing AUTH_SYS”.30
The RFC is careful about what the last item means. With server-only TLS, “the RPC client itself can still misrepresent user identity without server detection. TLS without authentication is an improvement from AUTH_SYS without encryption, but it leaves a critical security exposure.” It recommends mutual TLS with AUTH_SYS, so that “the server can then determine whether the UIDs and GIDs in AUTH_SYS requests from that client can be accepted, based on the authenticated identity of the client.”30 With xprtsec=mtls, Linux admits a client to the export only if its transport completed a TLS handshake with peer authentication. The check in export.c tests those two transport flags. Whether a certificate is accepted is decided during the handshake, which Linux delegates to a user-space agent, and the export check itself does not tie a particular certificate to a particular export, address or user.1445 On such an export, mutual TLS adds an authenticated-transport check on top of the export’s host matching. It keeps out clients that lack a credential the configured trust policy accepts, and it protects traffic from eavesdropping and tampering. It does not stop root on a client that holds an accepted certificate from asserting any representable UID. The trust model is unchanged, with an additional test for which hosts count as trusted.
The RFC makes one claim that bears on the second weakness: “transport-layer encryption plus peer authentication protects receiving eXternal Data Representation (XDR) decoders from deserializing untrusted data”, adding that “these decoders would still be exposed to untrusted input in the case of the compromise of a trusted peer or Certification Authority.”30 Even under that design, the server must process the initial cleartext AUTH_TLS probe before any TLS exists.30 In Linux the TLS handshake itself runs in a user-space agent, because “there is no TLS handshake implementation in the Linux kernel”; the server needs a kernel with that handshake interface (6.5 or later) and the tlshd daemon from ktls-utils.4546 TLS is then optional for clients (“Clients can then choose to use RPC-with-TLS or they may continue operating without it”), and enforcement is per export through xprtsec=.33 The exports(5) page documents no listener-wide setting that refuses plaintext before NFSv4.1 session setup. The RFC’s protection for decoders is therefore available to traffic that is actually protected, and the default Linux configuration does not require that traffic to be protected.
Cloud services have adopted TLS through client-side mount helpers. Amazon EFS routes NFS through a local proxy (efs-proxy in efs-utils 2.0.0 and later, stunnel before that) when the TLS mount option is used.47 Azure Files uses its AZNFS helper and makes encryption in transit “required by default” for shares created under its newer Microsoft.FileShares resource provider.44 In these services the provider operates and patches the server. The customer still decides which networks can reach it.
The second weakness: a parser in ring 0
Seen from the server, an NFSv4.1 request goes through these stages. The kernel accepts a TCP connection on 2049 and reads the fragment header. It decodes the RPC call header and the credential: AUTH_SYS numbers, an empty AUTH_NULL, or an RPCSEC_GSS handle. It then runs the program’s authentication hook. For AUTH_SYS and AUTH_NULL that is a lookup of the source address’s authentication domain; RPCSEC_GSS establishes its security context by its own path.161820 It then decodes the COMPOUND, a variable-length list of operations with variable-length arguments, executes the operations and encodes the reply, caching it in the session slot if asked. Only when an operation touches a file handle does the server look up the export, check the port, the flavour and the TLS policy, and switch to the asserted user’s identity.1514 Everything before that point handles input from any peer whose request the RPC layer admits, and in knfsd it runs in kernel threads with full kernel privilege.
Some pre-authentication processing is unavoidable, since a server has to parse a message to learn who sent it. NFSv4.1 enlarges the amount, because session setup creates per-client state before any user is authenticated. The design choice in question is where that processing runs. In knfsd it runs in the kernel, so an out-of-bounds write there corrupts kernel memory. The library’s article on the anatomy of remote code execution covers what turns such a write into control of execution. For a file server, a successful chain gives the attacker the whole machine, its other services and every disk it holds, beyond the exported data.
Earlier knfsd flaws show the same class of risk, though with different preconditions. CVE-2017-7895 described NFSv2 and NFSv3 decoders that “lack certain checks for the end of a buffer, which allows remote attackers to trigger pointer-arithmetic errors”; NVD scored it 9.8 with no privileges required.48 CVE-2022-43945 was a buffer overflow in which “a client can force the send buffer to shrink by sending an RPC message over TCP with garbage data added at the end of the message”. Its CNA, Synopsys, embedded a vector with PR:L in the description, while NVD scored PR:N. Neither record explains the difference.4950 Neither flaw proves that knfsd is unusually bad. Both show that memory-safety bugs in kernel NFS request handling recur, and that they carry ring-0 consequences.
User space as an alternative
NFS-Ganesha describes itself as “an NFSv3,v4,v4.1 fileserver that runs in user mode”.51 Two concrete uses: Ceph exports CephFS through it (“CephFS namespaces can be exported over NFS protocol using the NFS-Ganesha NFS server”), and Longhorn serves Kubernetes ReadWriteMany volumes “via NFSv4 servers that reside in share-manager pods”, which run Ganesha.5253 A memory-safety bug in Ganesha corrupts a process, not the kernel.
How much that helps is testable on a given deployment, and depends on choices the operator makes:
- Process privilege: whether the server runs with full root and all capabilities, or with only the capabilities it needs to act on behalf of users.
- Container isolation: host networking gives a compromised server the host’s network reachability, and host mounts give access to whatever is mounted, within the process’s own rights.
- Backend access: a Ganesha instance exporting CephFS holds Ceph credentials. What those credentials can reach beyond the exported data defines the blast radius.
- Confinement: seccomp, mandatory access control and a dedicated user namespace, as described in the library’s article on least privilege.
A well-confined user-space server keeps a parser compromise inside the process, its exported data and its backend credentials. Each of the choices above widens what a compromise reaches. Moving the server out of the kernel does not remove its pre-authentication code, and this article makes no claim about whether Ganesha’s code is larger or smaller than knfsd’s. Performance, feature coverage and support also differ and are not weighed here.
Where NFS runs now, and who decides its trust
NFS now runs in many settings beyond the departmental file server. Each of the following scenarios shows a typical way the two weaknesses appear:
- Storage appliances and NAS. These often run vendor kernels patched through firmware on the vendor’s schedule, as CSO notes.3 The administrator controls the export rules but not the server code, and may not know which kernel branch the appliance runs.
- A build farm. Where several CI runners write shared output, a
no_root_squashexport to a wildcard of runner hostnames lets any one compromised runner act as root on the share and tamper with what others build. - A compute cluster sharing home directories. Many nodes under one numeric UID space, each with root held by the cluster’s administrators, is the setting the 1984 design assumed. Each node can assert any representable UID.
- Kubernetes storage nodes. A node serving NFS to its cluster can be reached from pods if the cluster network routes to it and no policy blocks it. Kubernetes pods are “non-isolated for egress” by default, and NetworkPolicy only takes effect with a network plugin that enforces it.54 Whether the server then admits the request depends on the source address it sees, which depends on the CNI and any NAT. Red Hat lists OpenShift’s CoreOS images as affected by NFS2ROOT.23
- Cloud file services. The provider operates and patches the server, so the customer cannot patch its parser and must trust the provider to do so. The trust defaults and reachability stay with the customer. An EFS file system without a file system policy “grants full access to any anonymous client that can connect to the file system using a mount target”; that grant sits above the file system’s own POSIX permissions.5537 Filestore’s default export admits the VPC’s internal ranges with
no_root_squash; clients on non-RFC 1918 ranges must be added explicitly.36 Azure’s NFS shares rely on network controls in place of user authentication.44
Exposure: who can open a TCP connection to 2049
CERT’s advice on NFS has changed little in 35 years. Its 1991 advisory recommended “filtering SunRPC and NFS IP packets (sockets 111 and 2049) between the local network and the Internet”.39 Its 1994 advisory, written because of “an increase in reports of root compromises caused by intruders using tools to exploit a number of NFS ... vulnerabilities”, repeated the advice and added the caveat that still matters: filtering at the perimeter “will not protect you from attacks launched from your local network, behind your firewall.”34 NFS2ROOT fits that caveat. It needs no internet exposure, only a host inside the network whose address the server admits.
The port picture depends on the NFS version. NFSv4 “listens on TCP port 2049. For this reason, NFSv4 doesn’t need to interact with the rpcbind, lockd, and rpc-statd services”; rpc.mountd still runs locally to manage exports but “isn’t involved in any over the wire operations”.56 NFSv3 clients normally discover the NFS and mountd ports through the server’s rpcbind service, unless the mount names them explicitly with port= and mountport=.5657 Rpcbind is also a reconnaissance aid. Shadowserver’s open-portmapper report notes that portmapper “can be used to obtain a large amount of information about the target, including the NFS exports that are hosted by that device, if the mountd program is also accessible”.58 An NFSv4-only server with rpcbind and the version 3 services disabled exposes fewer ports and reveals less.
A second default is easy to miss. rpc.nfsd “will accept NFS requests on all known network addresses” unless told otherwise with -H.59 A file server with a storage interface and a management interface listens on both by default. Binding nfsd to the storage address, and filtering 2049 on every other interface for IPv4 and IPv6, turns the network design into an enforced rule. The library’s article on segmentation and zero trust gives the general argument. For NFS, the segment and the export client lists should both contain the hosts that actually mount, and no others.
Objections
“NFS is internal; the risk is theoretical.”
CERT answered this in 1994: perimeter filtering does not protect against attacks from inside.34 NFS2ROOT needs only an internal host that can reach the listener and whose request the server admits.
“We use Kerberos, so we are fine.”
Kerberos addresses the first weakness for users who authenticate with it. It was never in the path of the second. A server whose exports all required sec=krb5p was as exposed to NFS2ROOT as a sec=sys one, for clients whose requests it admits.114
“The exploit is private and the score is disputed.”
The disagreement is real but narrow. The CNA and Red Hat agree the bug needs no privileges and differ on integrity impact (High against Low), which moves the score from 9.8 to 9.4. NVD has not yet scored it.12324 The root-shell claim is OpenSec’s alone.2 The kernel record by itself establishes a client-shaped heap overflow, a heap disclosure and a possible host panic, reachable without user authentication.1 Patch priority does not depend on settling the dispute.
“Kernel hardening will catch it.”
OpenSec’s view is that “Kernel hardening does not remove the overflow.”2 Hardening raises the cost of turning a corruption into code execution. The CNA’s own account includes a heap disclosure of the kind used to defeat address randomisation, and the overflow and possible panic happen either way.1
“Move everything to a user-space server.”
That changes what a parser bug yields, from the kernel to a process. It does nothing about AUTH_SYS. Its value depends on the confinement choices listed above, and it does not replace patching.
What practitioners should do differently
This week
- Find every host running the in-kernel server.
lsmod | grep -w nfsdis only a clue, because nfsd can be built into the kernel and then never appears as a module.60 Better evidence is a runningnfs-serverservice,cat /proc/fs/nfsd/versionsshowing+4.1or+4.2, and a TCP listener on 2049 on a non-loopback address (ss -ltn 'sport = :2049'), as OpenSec’s checklist suggests.2 That is the default path. Also inventory the configured listener addresses, ports and transports, including UDP or RDMA where enabled, inrpc.nfsdoptions or the[nfsd]section ofnfs.conf.5961 Include appliances, NAS devices and Kubernetes storage nodes. - Install a kernel that lists CVE-2026-99362, then reboot. Distribution kernels backport the fix without upstream version numbers, as RHEL 8’s 4.18 kernel shows.23
- Where patching must wait, restrict 2049 and any other enabled NFS transport to the hosts that mount, remembering that every host still allowed through can reach the vulnerable code. Alternatively, set
vers4.1=nandvers4.2=nin the[nfsd]section of/etc/nfs.conf, restartnfs-server, and confirm in/proc/fs/nfsd/versionsthat both are disabled; OpenSec notes this turns off pNFS and some 4.2 features.261 Or stopnfs-serverwhere it is not needed.23 - Treat kernel warnings from
nfsd4_check_resp_size, and oopses withnfsd4_*,svc_*orcall_usermodehelper*frames, as triage leads that OpenSec associates with exploitation attempts.2 Their absence does not show that no attempt was made.
For the placement weakness
- Treat port 2049 as a pre-authentication kernel attack surface. Allow it only from a named set of client addresses, on the storage interface only, for both address families.
- Keep export client lists as narrow as the firewall rules. This is good practice in its own right; any effect on reaching the session code depends on the setup described earlier and should not be relied on.
- Disable versions and services that are not used: NFSv3, rpcbind and statd on NFSv4-only servers.56
- For multi-tenant or Kubernetes-facing storage, consider a user-space server in an unprivileged, confined container with narrowly scoped backend credentials, and write network policy that keeps ordinary pods away from storage ports.
- Do not count
sec=krb5*orxprtsec=mtlsas protection for this weakness.
For the trust model
Decide for each export whether its users share one identity or need individual identities, and whether the client hosts are trusted.
| Situation | Then use | It stops | It does not stop |
|---|---|---|---|
| Individual identities, trusted client hosts | sec=sys, CIDR client lists, root_squash | unlisted hosts, client root acting as UID 0 | a compromised client asserting any other representable UID |
| One shared identity on the export | all_squash with anonuid/anongid (or EFS access points, required by policy) | UID impersonation on that export | any per-user separation, since all admitted users become one |
| Individual identities, untrusted client hosts | sec=krb5i or krb5p only, no sys in the list | impersonation of users without credentials, tampering in transit | misuse of credentials present on a compromised client |
| Untrusted network between hosts | RPC-with-TLS with xprtsec=mtls | clients without an accepted certificate, eavesdropping, tampering | root on a certificate-holding client asserting any representable UID |
On EFS, creating an access point does not by itself force clients through it; a file system policy can require that with the elasticfilesystem:AccessPointArn condition key.55 The general measures below apply whatever the answers above:
- Never use
no_root_squashwith wildcards or broad subnets. Name the one host that needs it, and mount the share elsewhere withnosuid. - Export whole filesystems, not subdirectories. Where subdirectory exports are unavoidable, consider
sign_fhon kernels that have it, with a managed per-namespace key. Adding or removing the option on an active export makes clients’ cached handles fail, as does changing the key, so the kernel documentation advises a scheduled maintenance window with client unmount and remount.41 - Do not mix
sysinto asec=list that also contains Kerberos. - On cloud file services, replace permissive defaults. Write an EFS file system policy and withhold
ClientRootAccess. Narrow Filestore’s VPC-wide client list and decide deliberately whether to keep itsno_root_squashdefault.553736 - Verify reachability from untrusted segments directly for every enabled path: TCP 2049, plus UDP, RDMA (port 20049 by default), 111 and the mountd port where configured, over each enabled IP family.59
showmount -eonly “queries the mount daemon”, so a negative result says nothing about NFSv4 reachability.62
The general lessons of exposed management interfaces apply here too: measure reachability instead of assuming it, and expect privileged services that parse network input to fail. The RPC and transport layers are covered in more depth in the library’s systems and networks foundations article.
Conclusion
NFS2ROOT is a 2026 bug in a 2014 code path in a protocol whose implementation began in 1984. It shows that NFS has two security weaknesses, and that they need different remedies.
The first is the trust model. It was a deliberate trade-off for a building full of workstations, described as provisional by its designers in 1985 and called insecure in the IETF’s own specifications since at least 2009.266 Under AUTH_SYS the server decides which addresses to admit and then believes whatever user ID the admitted host writes into each request. Root squashing changes only user and group ID 0. Kerberos fixes the model for users who authenticate with it, at an operational cost that RFC 9289 names as the reason AUTH_SYS remains common.30 RPC-with-TLS with client certificates does not verify users either, but on exports that require it, it adds a certificate check to the address check.
The second is placement. A kernel NFS server must process a stranger’s request before it knows which user sent it, and in Linux the session-setup code that NFS2ROOT broke runs before any per-export security setting is consulted. Kerberos and TLS policies on exports were never in that path. Patching, removing reachability and choosing where the server runs are the remedies.
That answers the question in the abstract. A forty-year-old file protocol is still a way to take over a server because its default trusts whatever host the server admits, and because Linux processes that host’s requests in the kernel. Limiting which hosts can reach the listener to those that actually mount narrows both weaknesses; it complements patching and does not replace it.
Footnotes
- CVE Program, “CVE-2026-99362” (CNA: Linux), reserved 25 September 2026, published 19 November 2026, updated 28 November 2026. https://cveawg.mitre.org/api/cve/CVE-2026-99362 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15
- OpenSec Intelligence, “NFS2ROOT: a 12-year-old pre-auth remote root in the Linux kernel’s NFS server”, OpenSec, 25 November 2026. The original at https://opensec.in/blog/nfs2root-cve-2026-99362 blocks automated readers; read via the Internet Archive snapshot of 30 November 2026. https://web.archive.org/web/20261130135724/https://opensec.in/blog/nfs2root-cve-2026-99362 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11
- Lucian Constantin, “Flaw in Linux NFS file sharing exposes servers to remote takeover”, CSO, 27 November 2026. https://www.csoonline.com/article/4254114/flaw-in-linux-nfs-file-sharing-exposes-servers-to-remote-takeover.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Valtteri Vuorikoski, “CVE-2026-99362: Pre-auth heap overflow in the Linux NFS server ‘NFS2ROOT’”, oss-security mailing list, 28 November 2026. https://www.openwall.com/lists/oss-security/2026/11/28/2 (opens in a new tab) ↩
- Pierluigi Paganini, “NFS2ROOT: 12-Year-Old Linux NFS Flaw Gives Attackers Root”, Security Affairs, 29 November 2026. https://securityaffairs.com/204204/security/nfs2root-12-year-old-linux-nfs-flaw-gives-attackers-root.html (opens in a new tab) ↩1 ↩2 ↩3
- R. Thurlow, “RPC: Remote Procedure Call Protocol Specification Version 2”, RFC 5531, IETF, May 2009 (Sections 11 and 14, Appendix A). https://www.rfc-editor.org/rfc/rfc5531.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- T. Haynes and D. Noveck (eds.), “Network File System (NFS) Version 4 Protocol”, RFC 7530, IETF, March 2015 (Sections 3.2, 5.9, 9 and 19). https://www.rfc-editor.org/rfc/rfc7530.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- D. Noveck (ed.) and C. Lever, “Network File System (NFS) Version 4 Minor Version 1 Protocol”, RFC 8881, IETF, August 2020 (Sections 2.10.1, 2.10.6, 18.36 on CREATE_SESSION and 18.46 on SEQUENCE). https://www.rfc-editor.org/rfc/rfc8881.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Jérémy Jean, “nfsd: preflight SEQUENCE replies before accepting a slot”, Linux kernel commit 5d5a72e965c8, authored 18 August 2026, committed 14 September 2026. https://github.com/torvalds/linux/commit/5d5a72e965c8b6ec870f114b9fe4961b8697732e (opens in a new tab) ↩1 ↩2
- Chuck Lever, “nfsd: set op->status when an operation’s header cannot be encoded”, Linux kernel commit 241848cc774e, authored 18 August 2026. https://github.com/torvalds/linux/commit/241848cc774eb1172fa867bb6a28c32cf1869c0d (opens in a new tab) ↩
- J. Bruce Fields, “nfsd4: adjust buflen to session channel limit”, Linux kernel commit 47ee52986472, authored 13 March 2014. https://github.com/torvalds/linux/commit/47ee52986472dba068e8223cbaf1b65d74238781 (opens in a new tab) ↩
- Canonical, “CVE-2026-99362”, Ubuntu Security, status as fetched 1 December 2026. https://ubuntu.com/security/CVE-2026-99362 (opens in a new tab) ↩1 ↩2
- Linux kernel source,
fs/nfsd/nfs4proc.c, operation table entries for OP_EXCHANGE_ID, OP_CREATE_SESSION and OP_SEQUENCE, mainline revision 19cc08c1a6a6 (30 November 2026). https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/fs/nfsd/nfs4proc.c (opens in a new tab) ↩1 ↩2 - Linux kernel source,
fs/nfsd/export.c,check_xprtsec_policy()andcheck_nfsd_access(), mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/fs/nfsd/export.c (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 - Linux kernel source,
fs/nfsd/nfsfh.c,nfsd_originating_port_ok()and file handle verification, mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/fs/nfsd/nfsfh.c (opens in a new tab) ↩1 ↩2 ↩3 - Linux kernel source,
net/sunrpc/svc.c,svc_process_common()(callssvc_authenticate()then the program’spg_authenticatehook before dispatch), withfs/nfsd/nfssvc.csetting that hook tosvc_set_client, mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/net/sunrpc/svc.c (opens in a new tab) ↩1 ↩2 - Linux kernel source,
fs/nfsd/nfssvc.c, program definitions setting.pg_authenticate = svc_set_client(“export authentication”), mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/fs/nfsd/nfssvc.c (opens in a new tab) ↩ - Linux kernel source,
net/sunrpc/svcauth_unix.c,svcauth_unix_accept()andsvcauth_unix_set_client(), mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/net/sunrpc/svcauth_unix.c (opens in a new tab) ↩1 ↩2 ↩3 - Linux manual page, “nfsd(7)”, man7.org, as fetched 1 December 2026. https://man7.org/linux/man-pages/man7/nfsd.7.html (opens in a new tab) ↩
- Linux kernel source,
net/sunrpc/auth_gss/svcauth_gss.c, header comment andsvcauth_gss_set_client(), mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/net/sunrpc/auth_gss/svcauth_gss.c (opens in a new tab) ↩1 ↩2 ↩3 - nfs-utils source,
support/export/cache.c,auth_unix_ip(), revision 79770ef91411. https://git.linux-nfs.org/cgit/steved/nfs-utils.git/tree/support/export/cache.c?id=79770ef91411cc2d3f97eb5efdd43a7d39b0070e (opens in a new tab) ↩ - nfs-utils source,
support/export/client.c,client_compose(), revision 79770ef91411. https://git.linux-nfs.org/cgit/steved/nfs-utils.git/tree/support/export/client.c?id=79770ef91411cc2d3f97eb5efdd43a7d39b0070e (opens in a new tab) ↩ - Red Hat, “CVE-2026-99362”, Red Hat Customer Portal, security data as fetched 1 December 2026 (statement, mitigation, CVSS 9.4, RHSA-2026:103817 of 26 November 2026). https://access.redhat.com/security/cve/CVE-2026-99362 (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7
- NIST, “CVE-2026-99362 Detail”, National Vulnerability Database, status “Received”, last modified 28 November 2026. https://nvd.nist.gov/vuln/detail/CVE-2026-99362 (opens in a new tab) ↩1 ↩2
- Debian, “CVE-2026-99362”, Debian Security Tracker (DLA-4927-1, DLA-4942-1), as fetched 1 December 2026. https://security-tracker.debian.org/tracker/CVE-2026-99362 (opens in a new tab) ↩
- Russel Sandberg, David Goldberg, Steve Kleiman, Dan Walsh and Bob Lyon, “Design and Implementation of the Sun Network Filesystem”, Proceedings of the Summer 1985 USENIX Conference (scanned copy hosted by the University of Colorado). https://home.cs.colorado.edu/~rhan/CSCI_5573_Fall_2011/Papers/sandberg85.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
- Sun Microsystems, “NFS: Network File System Protocol Specification”, RFC 1094, March 1989 (Sections 1.3, 2.3.3, 3.3 and 3.4). https://www.rfc-editor.org/rfc/rfc1094.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- M. Eisler, “NFS Version 2 and Version 3 Security Issues and the NFS Protocol’s Use of RPCSEC_GSS and Kerberos V5”, RFC 2623, IETF, June 1999. https://www.rfc-editor.org/rfc/rfc2623.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- M. Eisler (ed.), “XDR: External Data Representation Standard”, RFC 4506 (STD 67), IETF, May 2006. https://www.rfc-editor.org/rfc/rfc4506.txt (opens in a new tab) ↩
- T. Myklebust and C. Lever (ed.), “Towards Remote Procedure Call Encryption by Default”, RFC 9289, IETF, September 2022 (Sections 1, 4.1, 6.3 and Appendix A). https://www.rfc-editor.org/rfc/rfc9289.txt (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
- Dan Farmer and Wietse Venema, “Improving the Security of Your Site by Breaking Into it”, 1993. http://www.porcupine.org/satan/admin-guide-to-cracking.html (opens in a new tab) ↩
- Linux kernel documentation, “The kernel’s command-line parameters”, entry
nfsd.nfs4_disable_idmapping, mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/Documentation/admin-guide/kernel-parameters.txt (opens in a new tab) ↩ - nfs-utils project, “exports(5)”, Linux manual page (man7.org copy taken from upstream on 4 August 2026). https://man7.org/linux/man-pages/man5/exports.5.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12
- CERT Coordination Center, “CA-94:15 NFS Vulnerabilities”, 19 December 1994 (as redistributed on the NANOG list). https://seclists.org/nanog/1994/Dec/38 (opens in a new tab) ↩1 ↩2 ↩3
- Linux kernel source,
fs/nfsd/auth.c,nfsd_setuser()squashing logic, mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/fs/nfsd/auth.c (opens in a new tab) ↩1 ↩2 - Google Cloud, “Access control”, Filestore documentation, as fetched 1 December 2026. https://cloud.google.com/filestore/docs/access-control (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Amazon Web Services, “Network File System (NFS) level users, groups, and permissions”, Amazon EFS User Guide, as fetched 1 December 2026. https://docs.aws.amazon.com/efs/latest/ug/accessing-fs-nfs-permissions.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Amazon Web Services, “Working with Amazon EFS access points”, Amazon EFS User Guide, as fetched 1 December 2026. https://docs.aws.amazon.com/efs/latest/ug/efs-access-points.html (opens in a new tab) ↩
- CERT Coordination Center, “CA-91:21 SunOS NFS Jumbo and fsirand Patches”, 6 December 1991 (archived copy on the Walnut Creek Internet Info CD-ROM, March 1994). [https://discmaster.textfiles.com/view/13691/Internet%20Info%20CD-ROM%20(Walnut%20Creek)%20(March%201994).iso/security/doc/cert_advisories/CA-91:21.SunOS.NFS.Jumbo.and.fsirand](https://discmaster.textfiles.com/view/13691/Internet%20Info%20CD-ROM%20(Walnut%20Creek)%20(March%201994).iso/security/doc/cert_advisories/CA-91:21.SunOS.NFS.Jumbo.and.fsirand) ↩1 ↩2
- Benjamin Coddington, “NFSD/export: Add sign_fh export option”, Linux kernel commit a002ad8a9bc8, authored 25 February 2026, included in Linux 7.1 (with companion commit 62346217fd72, “NFSD: Add a key for signing filehandles”). https://github.com/torvalds/linux/commit/a002ad8a9bc8 (opens in a new tab) ↩
- Linux kernel documentation, “Making Filesystems Exportable”, section “Signed Filehandles”, kernel 7.1. https://docs.kernel.org/7.1/filesystems/nfs/exporting.html (opens in a new tab) ↩1 ↩2 ↩3
- Kubernetes CSI project, “NFS CSI Driver for Kubernetes”, README, as fetched 1 December 2026. https://github.com/kubernetes-csi/csi-driver-nfs (opens in a new tab) ↩
- M. Eisler, A. Chiu and L. Ling, “RPCSEC_GSS Protocol Specification”, RFC 2203, IETF, September 1997 (Section 5.3.2). https://www.rfc-editor.org/rfc/rfc2203.txt (opens in a new tab) ↩1 ↩2 ↩3
- Microsoft, “NFS file shares in Azure Files”, Microsoft Learn, as fetched 1 December 2026. https://learn.microsoft.com/en-us/azure/storage/files/files-nfs-protocol (opens in a new tab) ↩1 ↩2 ↩3
- Linux kernel documentation, “In-Kernel TLS Handshake”, kernel 6.5. https://docs.kernel.org/6.5/networking/tls-handshake.html (opens in a new tab) ↩1 ↩2
- Oracle, “ktls-utils 1.5.0” release, GitHub (release notes state the net/handshake requirement of kernel v6.5 or later). https://github.com/oracle/ktls-utils/releases/tag/ktls-utils-1.5.0 (opens in a new tab) ↩
- Amazon Web Services, “Encrypting data in transit”, Amazon EFS User Guide, as fetched 1 December 2026. https://docs.aws.amazon.com/efs/latest/ug/encryption-in-transit.html (opens in a new tab) ↩
- NIST, “CVE-2017-7895 Detail”, National Vulnerability Database, published 28 April 2017. https://nvd.nist.gov/vuln/detail/CVE-2017-7895 (opens in a new tab) ↩
- NIST, “CVE-2022-43945 Detail”, National Vulnerability Database, published 4 November 2022. https://nvd.nist.gov/vuln/detail/CVE-2022-43945 (opens in a new tab) ↩
- CVE Program, “CVE-2022-43945” (CNA: Synopsys), CVE record. https://cveawg.mitre.org/api/cve/CVE-2022-43945 (opens in a new tab) ↩
- NFS-Ganesha project, README, GitHub, as fetched 1 December 2026. https://github.com/nfs-ganesha/nfs-ganesha (opens in a new tab) ↩
- Ceph project, “NFS”, Ceph documentation (CephFS), as fetched 1 December 2026. https://docs.ceph.com/en/latest/cephfs/nfs/ (opens in a new tab) ↩
- Longhorn project, “ReadWriteMany (RWX) Volume”, Longhorn documentation, as fetched 1 December 2026. https://longhorn.io/docs/latest/nodes-and-volumes/volumes/rwx-volumes/ (opens in a new tab) ↩
- Kubernetes, “Network Policies”, Kubernetes documentation, as fetched 1 December 2026. https://kubernetes.io/docs/concepts/services-networking/network-policies/ (opens in a new tab) ↩
- Amazon Web Services, “Using IAM to control access to file systems”, Amazon EFS User Guide, as fetched 1 December 2026. https://docs.aws.amazon.com/efs/latest/ug/iam-access-control-nfs-efs.html (opens in a new tab) ↩1 ↩2 ↩3
- Oracle, “About NFS Services”, Oracle Linux 9: Managing the Network File System, as fetched 1 December 2026. https://docs.oracle.com/en/operating-systems/oracle-linux/9/nfs/about-nfs-services_concept.html (opens in a new tab) ↩1 ↩2 ↩3
- nfs-utils project, “nfs(5)”, Linux manual page (man7.org), options
port=andmountport=, as fetched 1 December 2026. https://man7.org/linux/man-pages/man5/nfs.5.html (opens in a new tab) ↩ - The Shadowserver Foundation, “Open Portmapper Report”, last updated 18 December 2023. https://www.shadowserver.org/what-we-do/network-reporting/open-portmapper-report/ (opens in a new tab) ↩
- nfs-utils project, “rpc.nfsd(8)”, Linux manual page (man7.org), as fetched 1 December 2026. https://man7.org/linux/man-pages/man8/rpc.nfsd.8.html (opens in a new tab) ↩1 ↩2 ↩3
- Linux kernel source,
fs/nfsd/Kconfig(config NFSDistristate, so it may be built in or modular), mainline revision 19cc08c1a6a6. https://github.com/torvalds/linux/blob/19cc08c1a6a650f8e54c0461ff198be6448f425d/fs/nfsd/Kconfig (opens in a new tab) ↩ - nfs-utils project, “nfs.conf(5)”, Linux manual page (man7.org),
[nfsd]section, as fetched 1 December 2026. https://man7.org/linux/man-pages/man5/nfs.conf.5.html (opens in a new tab) ↩1 ↩2 - nfs-utils project, “showmount(8)”, Linux manual page (man7.org), as fetched 1 December 2026. https://man7.org/linux/man-pages/man8/showmount.8.html (opens in a new tab) ↩

SecSIG