Skip to content
Checklist

Linux NFS Exposure Checklist

Do you know where the Linux kernel NFS server is running, and who can reach TCP 2049? A reported nfsd flaw, reported as "NFS2ROOT" (CVE-2026-99362), is a reminder that NFS runs in the kernel and was built for trusted networks. Work through finding and disabling nfsd where it is not needed, patching the kernel to the version your distribution’s advisory lists as fixed, restricting 2049 to known clients, exports with root_squash and named hosts, NFSv4 with Kerberos for sensitive shares, and monitoring. You get a 0–100 score and the gaps ranked so you fix the riskiest first.

NFS exposure readiness
0/ 100
Wide open

NFS may be reachable from untrusted networks with permissive exports. Firewall 2049 and patch the kernel today.

0 / 16 items answered · weighting is a heuristic
By section
  • Where NFS runs0
  • Kernel patching0
  • Network exposure0
  • Exports and authentication0
  • Monitoring0

Prioritised gaps

Highest-weight, least-done items first. Work from the top.

  1. Network exposure · unanswered

    Scan your public ranges for 2049 and remove any security-group or firewall rule that exposes it.

  2. Kernel patching · unanswered

    Check your distribution's security tracker for CVE-2026-99362, install the fixed kernel and reboot or apply the vendor live patch; confirm with uname -r.

    KEV Checker →
  3. Exports and authentication · unanswered

    Review exportfs -v; remove no_root_squash (root_squash is the default) and re-export with exportfs -ra.

  4. Where NFS runs · unanswered

    Query your fleet for nfs-server / nfs-kernel-server units and nfsd kernel threads, and list the hosts.

  5. Network exposure · unanswered

    Add nftables/firewalld rules or security groups that allow NFS ports only from listed client subnets.

  6. Kernel patching · unanswered

    Report running kernel versions from every host and flag those older than the installed one.

  7. Exports and authentication · unanswered

    Replace wildcard clients in /etc/exports with the client hosts or narrow subnets that need each share.

  8. Where NFS runs · unanswered

    systemctl disable --now nfs-server (or nfs-kernel-server) and mask it, and remove the package where possible.

+ 8 more in the checklist below and in the export.

Where NFS runs · weight 20

The kernel NFS server (nfsd) is often enabled by an old project, a base image or a NAS appliance and then forgotten.

0
/ 100
in1

You know every Linux host where the kernel NFS server is running (for example systemctl is-active nfs-server, or nfsd threads in the process list).

in2

NFS is disabled and masked on hosts that do not need to serve files.

in3

NAS appliances and storage products that expose NFS are in the list, with their firmware versions.

Kernel patching · weight 22

nfsd runs inside the kernel, so a bug in it is a kernel bug. The fix arrives as a kernel update and only applies after a reboot or live patch.

0
/ 100
pa1CVE-2026-99362

NFS servers run the kernel your distribution's advisory lists as fixed for CVE-2026-99362, and have been rebooted (or live-patched) onto it.

KEV Checker →
pa2

You track the running kernel, not only the installed package, so hosts waiting for a reboot show up as unpatched.

pa3

Kernel security updates on file servers have a defined maintenance window and target time.

Network exposure · weight 24

NFS was designed for trusted networks. Port 2049 should be reachable only from the clients that mount it.

0
/ 100
nw1

TCP and UDP 2049 are not reachable from the internet on any host or cloud security group.

nw2

Inside the network, a host firewall or segmentation allows 2049 (and rpcbind 111, mountd and statd for NFSv3) only from the client hosts that need it.

nw3

NFSv2 and NFSv3 are disabled where all clients support NFSv4, which needs only port 2049.

Exports and authentication · weight 22

With plain AUTH_SYS, the server trusts whatever user ID the client claims. Export options decide how far that trust goes.

0
/ 100
ex1

No export uses no_root_squash unless a documented system needs it, and then only to a named host.

ex2

Exports name specific hosts or subnets, never "*" or a whole network range by default.

ex3

Exports are read-only (ro) unless clients must write, and do not expose / or system directories.

ex4

Sensitive shares use NFSv4 with Kerberos (sec=krb5i or krb5p) rather than sec=sys.

Monitoring · weight 12

Unexpected mounts and new root-owned files on a file server are early signs that something is wrong.

0
/ 100
mo1

You alert on NFS connections or mount requests from hosts that are not known clients.

mo2

Kernel logs (oops, warnings mentioning nfsd) and unexpected nfsd restarts on file servers are collected and reviewed.

mo3

File integrity monitoring or EDR covers setuid files and new root-owned binaries on hosts that mount or serve NFS.

Educational self-assessment from PlayCISO. The section weights are a judgement framework, not a measurement, certification or guarantee. Affected and fixed kernel versions are not stated here: use your distribution's advisory for CVE-2026-99362. The checklist runs in your browser and uploads nothing; your answers live only in the link you choose to copy.

Loading…

Sample report · illustrative data

Sample result: Linux NFS exposure checklist

Example answers for a made-up research lab with two NFS file servers: the kernel update is installed but one server has not been rebooted, and a share uses no_root_squash for a cluster.

Overall

NFS exposure readiness
42 / 100 (Exposed)
Items answered
16 of 16

Score by section

SectionWeightScore
Where NFS runs2049
Kernel patching2227
Network exposure2458
Exports and authentication2251
Monitoring1211

Prioritised gaps (first five)

  • Kernel patching: report running kernel versions from every host and flag those older than the installed one.
  • Kernel patching: check your distribution's security tracker for CVE-2026-99362, install the fixed kernel and reboot or apply the vendor live patch; confirm with uname -r.
  • Exports and authentication: review exportfs -v; remove no_root_squash (root_squash is the default) and re-export with exportfs -ra.
  • Network exposure: set vers3=n (and vers2=n) in /etc/nfs.conf [nfsd] where clients allow, and turn off rpcbind exposure.
  • Exports and authentication: plan Kerberos for sensitive shares: krb5p encrypts traffic, krb5i adds integrity, and both stop clients claiming arbitrary user IDs.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this checklist is

5 points
  • For Linux, infrastructure and security teams with file servers, build hosts, HPC clusters or appliances that serve NFS, or base images that may enable it.
  • Five weighted sections: where NFS runs, kernel patching, network exposure, exports and authentication, and monitoring. You get a 0–100 score, a band and the gaps to close first.
  • Prompted by a reported Linux NFS server flaw (reported as NFS2ROOT, CVE-2026-99362). Affected and fixed kernels are not listed here: use your distribution’s advisory.
  • Network exposure and exports carry the most weight: an NFS server reachable only from its clients, with root_squash and named hosts, is a much smaller target whatever the next kernel bug is.
  • Runs in your browser; nothing is uploaded. Share the exact checklist with a link; CSV and Markdown exports are available.

NFS assumes a trusted network

The kernel NFS server runs inside the Linux kernel, so a flaw in it is a kernel flaw, and with the default AUTH_SYS security the server trusts the user IDs the client claims. That design made sense on a closed lab network; on a flat corporate network or a cloud subnet with broad security groups it means any reachable host is a potential client.

The fixes are mostly configuration: switch NFS off where it is not needed, patch and reboot onto the kernel your distribution says is fixed, allow 2049 only from named clients, export to specific hosts with root_squash and read-only by default, and use Kerberos for sensitive shares. The weights in this checklist are a heuristic, shown openly; it is a self-assessment, not a certification.

Frequently asked questions

How do I check whether a Linux host is running an NFS server?

Check the service (systemctl is-active nfs-server on Red Hat-family systems, nfs-kernel-server on Debian and Ubuntu), look for nfsd kernel threads, and see whether anything listens on port 2049 (ss -tln). If the host does not need to serve files, disable and mask the service.

Which kernel fixes CVE-2026-99362?

We do not list versions here because each Linux distribution backports fixes into its own kernel packages. Look the CVE up in your distribution’s security tracker, install the kernel it names as fixed and reboot or apply the vendor live patch; then confirm the running kernel with uname -r.

What is root_squash and why does no_root_squash matter?

With root_squash, the default, requests from root on a client are mapped to an unprivileged user on the server. no_root_squash lets a client’s root act as root on the exported files, so anyone with root on any allowed client can plant setuid files or change system data. Avoid it unless a documented system needs it.

Should NFS ever be exposed to the internet?

No. Port 2049, and rpcbind (111), mountd and statd for NFSv3, should be reachable only from the client hosts that mount the shares. Scan your public ranges and cloud security groups for 2049 and remove any rule that exposes it.

Does the tool scan my servers or upload my answers?

No. It is a self-assessment that runs entirely in your browser. It makes no network calls about your systems, and your answers are only stored in the shareable link you choose to copy.

More tools like this

Related tools and labs, with new picks every day.

All tools