FreeBSD RPCSEC_GSS Stack Overflow Enables Unauthenticated Remote Code Execution
Vulnerability Disclosure · 6 sources · Updated 5mo ago · First seen Mar 26, 2026

FreeBSD disclosed CVE-2026-4747 in advisory FreeBSD-SA-26:08.rpcsec_gss, warning that improper bounds checking in RPCSEC_GSS packet-signature validation can copy attacker-controlled data into a fixed stack buffer and trigger a stack overflow. The bug affects all supported FreeBSD versions and can be exploited by an unauthenticated client. In the kernel, exploitation is possible when kgssapi.ko is loaded and the system is running an NFS server with RPCSEC_GSS enabled; in userspace, RPC servers linked against librpcsec_gss are also exposed, although FreeBSD said it was not aware of vulnerable base-system applications in that category.
Independent technical write-ups tied the flaw to svc_rpc_gss_validate in the RPC/NFS path, describing how a crafted RPCSEC_GSS credential length can overflow a 128-byte stack buffer and potentially corrupt saved control data, leading to denial of service or kernel-mode remote code execution. The reports said the issue is reachable over the network, commonly via NFS on TCP port 2049, and could result in full system compromise if exploited successfully. FreeBSD released patches for supported stable and release branches and said there is no practical workaround beyond avoiding deployments where kgssapi.ko is loaded.


