A critical flaw in the Linux kernel NFS server, tracked as CVE-2026-99362 and dubbed NFS2ROOT, lets remote attackers without authentication gain root privileges. The problem is a memory overflow present since version 3.16 from 2014, and it affects systems running nfsd with NFSv4.1 or 4.2 where TCP port 2049 is reachable. A researcher at the French agency ANSSI found the flaw, and OpenSec published a full working exploit. Fixes are available in newer kernel releases and distribution updates.

What it means: NFS is widely used for shared folders on company networks, in NAS storage devices, in virtualisation and in container infrastructure. A public exploit means automated scans for vulnerable servers will start quickly, if they have not already begun. The most immediate risk concerns servers exposing port 2049 to the internet, which should not happen but often does because of hasty configuration. For Greek businesses and hosting providers the priority is twofold: update the kernel and reboot, and restrict the port to trusted internal networks only. Where an immediate reboot is not possible, temporarily disabling NFSv4.1 and 4.2 reduces the risk. NAS devices and ready-made storage appliances need special attention, because they often run old kernels and vendors can be slow to publish updates. The fact that the flaw stayed hidden for twelve years in open code reviewed by many people is a reminder that no core infrastructure should be assumed safe without updates and limited exposure. Teams should also check backup servers, which often use NFS and are easy to forget during urgent patching rounds.

Read the original on BleepingComputer

Related service: Custom software

Related stories