# NFS2ROOT on CentOS 7: the stock kernel is affected and gets no fix

> Source: <https://dev.to/getpagespeed/nfs2root-on-centos-7-the-stock-kernel-is-affected-and-gets-no-fix-1cej>
> Published: 2026-11-27 09:01:54+00:00

**Recommendation:** On CentOS 7, stop nfs-server or firewall port 2049 as a stopgap, then install kernel-lt 6.18.62-1 or later and confirm the running kernel with uname -r after reboot.
More in the playbook "Running AI in production": <https://wpnews.pro/playbooks/production-ops>

NFS2ROOT (CVE-2026-99362) is a pre-authentication heap overflow in the Linux kernel's NFS server. A client that can reach TCP 2049 shrinks its NFSv4.1 session reply cache to zero bytes, pads a `SEQUENCE` request, and nfsd copies the whole reply into the empty slot buffer. No account or export access is needed. The kernel.org CNA rates it CVSS 9.8, Red Hat rates it Critical.

On CentOS 7 it reaches every NFS server running the defaults:

`nfsd` serves `+4.1 +4.2` out of the box, and having no exports does not help: the overflow happens during session setup. CentOS 7 gets no kernel updates.`kernel-lt` 5.4.278 and `kernel-ml` 6.9.7:`4.18.0-553.190.1.el8_10`), CentOS 8 did not. AlmaLinux 8, Rocky 8 and Oracle Linux 8 already ship that kernel, so converting in place is the free way out.
Disclosure: I maintain this package. GetPageSpeed's `kernel-lt` has carried the fix since 6.18.62-1, published on 2026-11-07, twelve days before the CVE went public. It uses the same package name as ELRepo, installs beside your current kernel, and is free for any use:

```
yum -y install https://extras.getpagespeed.com/release-latest.rpm
yum -y install yum-utils
yum-config-manager --enable getpagespeed-extras-corecare
yum -y install kernel-lt
grub2-set-default 0
grubby --default-kernel
reboot
```

Already on our 6.18 kernel but older than 6.18.62? `yum -y update 'kernel-lt*'`, then check `grubby --default-kernel` before you reboot: builds before 6.18.62-2 did not move the GRUB default on update. `uname -r` after the reboot is the check that counts, not `rpm -q`.

The exposure checks, Red Hat's stopgap (stop `nfs-server` or firewall 2049) and the rollback are in the [full write-up](https://www.getpagespeed.com/server-setup/security/nfs2root-cve-2026-99362-centos-7).
