Description
Each RPCSEC_GSS data packet is validated by a routine which checks a signature in the packet. This routine copies a portion of the packet into a stack buffer, but fails to ensure that the buffer is sufficiently large, and a malicious client can trigger a stack overflow. Notably, this does not require the client to authenticate itself first. As kgssapi.ko's RPCSEC_GSS implementation is vulnerable, remote code execution in the kernel is possible by an authenticated user that is able to send packets to the kernel's NFS server while kgssapi.ko is loaded into the kernel. In userspace, applications which have librpcgss_sec loaded and run an RPC server are vulnerable to remote code execution from any client able to send it packets. We are not aware of any such applications in the FreeBSD base system.
Problem types
CWE-121: Stack-based Buffer Overflow
Product status
15.0-RELEASE (release) before p5
14.4-RELEASE (release) before p1
14.3-RELEASE (release) before p10
13.5-RELEASE (release) before p11
Credits
Nicholas Carlini using Claude, Anthropic
References
github.com/...ons/blob/main/MADBugs/CVE-2026-4747/exploit.py
github.com/...o/publications/tree/main/MADBugs/CVE-2026-4747
security.freebsd.org/...ries/FreeBSD-SA-26:08.rpcsec_gss.asc