vendor:
FreeBSD
by:
Patroklos Argyroudis
7,2
CVSS
HIGH
Insufficient input validation in nfs_mount()
119
CWE
Product Name: FreeBSD
Affected Version From: FreeBSD 8.0-RELEASE
Affected Version To: FreeBSD 7.2-RELEASE
Patch Exists: YES
Related CWE: N/A
CPE: o:freebsd:freebsd
Metasploit:
N/A
Other Scripts:
N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References:
N/A
Nuclei Metadata: N/A
Platforms Tested: FreeBSD 8.0-RELEASE, FreeBSD 7.3-RELEASE, FreeBSD 7.2-RELEASE
2010
Local kernel exploit for FreeBSD 8.0, 7.3 and 7.2.
nfs_mount() employs an insufficient input validation method for copying data passed in the struct nfs_args from userspace to kernel. Specifically, the file handle to be mounted (nfs_args.fh) and its size (nfs_args.fhsize) are completely user-controllable. This can cause a kernel stack overflow which leads to privilege escalation in 7.3-RELEASE and 7.2-RELEASE, and a kernel crash / denial-of-service in 8.0-RELEASE (due to SSP/ProPolice).
Mitigation:
Disable the sysctl(8) variable vfs.usermount.