Sudo before 1.6.6 contains an off-by-one error that can result in a heap-based buffer overflow that may allow local users to gain root privileges via special characters in the -p (prompt) argument, which are not properly expanded.
The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.