vendor:
Linux Kernel
by:
Unknown
8.6
CVSS
HIGH
Buffer Overflow
121
CWE
Product Name: Linux Kernel
Affected Version From: Unknown
Affected Version To: Unknown
Patch Exists: YES
Related CWE: CVE-1999-0002
CPE: a:linux:linux_kernel
Platforms Tested: Linux
1997
Autofs Kernel Module Directory Name Overflow Vulnerability
The autofs kernel module does not check the size of the directory names it receives. It is passed the name and the names length through dentry->d_name.name and dentry->d_name.len respectively. Later on, it memcpy()'s the name into a 256 byte buffer, using dentry->d_name.len as the number of bytes to copy, without checking its size. A nonprivileged user may attempt to cd to a directory name exceeding 255 characters. This overwrites memory, probably the kernel stack and anything beyond it, and causes kernel errors or makes the machine reboot.
Mitigation:
Upgrade to a patched version of the autofs kernel module.