• boatswain@infosec.pub
    link
    fedilink
    English
    arrow-up
    4
    ·
    10 hours ago

    The NFS server built into the Linux kernel has a serious vulnerability. Attackers can overwrite kernel memory and ultimately gain root access. Affected users should install patches as soon as they are available. Until then, they should either disable the NFS server or allow it to communicate only with trusted clients.

    The bug has been lurking in the code since Linux 3.16. Malicious clients can negotiate for the server to set aside too little space to cache its responses to the client. They can then make the server send a response that does not fit in the cache, causing 61 bytes to be written past the end of the cache. The client can control the contents of 40 of those bytes. The client can also use the server’s response to infer its kernel address space layout randomization (KASLR), allowing it to overwrite function pointers in a targeted way in subsequent requests and ultimately gain root privileges on the server.

    NFS users should make sure they are running at least one of the following kernel versions:

    5.10.275
    5.15.226
    6.1.193
    6.6.163
    6.12.117
    6.18.61
    7.3.2
    7.4-rc1
    

    Users running older distribution kernels should check that the release notes list vulnerability CVE-2026-99362 as fixed. The vulnerability has not yet been fixed across the board at Red Hat, Ubuntu or SUSE. Until patches can be installed, a temporary workaround is to disable NFS versions 4.1 and 4.2 or block access to the server’s NFS port 2049 — at least for any clients you don’t trust.

    Jérémy Jean, an employee of France’s National Cybersecurity Agency (ANSSI), discovered the problem in August of this year. Independently, IT security company OpenSec says it discovered the vulnerability in September using an AI system. OpenSec also demonstrated privilege escalation to root and named the vulnerability NFS2ROOT. CVE-2026-99362 was finally published on Nov. 19 and assigned a CVSS 3 score of 9.8; all long-term kernels have also been patched since Nov. 23.