An unofficial, read-only Hacker News reader.

Nfs2root: A 12-year-old pre-auth remote root in the Linux kernel's NFS server (opens external site)

216 points by dm 4 days ago | opensec.in | 95 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. It really sounds like this is only NFS 4.1 and 4.2 and up(?). So my mitigation for right now (on distros that are out of support re: kernel) is simply to disable 4.1 and 4.2 protocol like the below (turn nfs-server off first),

        $ echo "-4.1 -4.2" | sudo tee /proc/fs/nfsd/versions
    
    I am no security expert but for now this change, which is temporary and reverts on reboot, seems reasonable. Before I did this I checked if my clients used nfs 4.1 or 4.2 at all and only one computer on my network did and it has fine 3/4 support. The vast majority of my nfs traffic is v3.
    Replies (1)
    1. Security was one of the most important features of NFSv4 over v3 (krb, ACLs, end of blind UID trust...).
      Replies (1)
      1. Funny how that works. The "higher security" a protocol is the more RCE it has. Just look at TLS-integrated HTTP/2 and HTTP/3 vs bare HTTP/1.1.