vendor:
FreeBSD
by:
Patroklos Argyroudis
7,2
CVSS
HIGH
Insufficient input validation in mountnfs()
20
CWE
Product Name: FreeBSD
Affected Version From: FreeBSD 8.0, 7.3 and 7.2
Affected Version To: FreeBSD 8.0, 7.3 and 7.2
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, 7.3 and 7.2
2010
Local kernel exploit for FreeBSD 8.0, 7.3 and 7.2
mountnfs() 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 heap overflow when argp->fh is bigger than 128 bytes (the size of nmp->nm_fh) since nmp is an allocated item on the UMA zone nfsmount_zone.
Mitigation:
Ensure that input validation is performed on user-controllable data before copying it to kernel memory.