Description of problem: Alan Cox has reported the following issue: <cite> Random auditing results tehuti has no security checks on the do_ioctl functions and it has ioctl methods for patch arbitary 32bit offset from registers with arbitary 32bit value. Nasty hole </cite> Version-Release number of selected component (if applicable): From 2.6.24 Actual results: Expected results: Additional info: The Tehuti network driver first appeared in 2.6.24 version of the Linux kernel: http://www.linuxhq.com/kernel/v2.6/24/drivers/net/tehuti.h Proposed upstream patch: http://git2.kernel.org/?p=linux/kernel/git/davem/net-2.6.git;a=commitdiff;h=6131a2601f42cd7fdbac0e960713396fe68af59f
Please have a look also at BZ#444416 to see how to move ioctl perm check closer to function start in the Tehuti driver.
Patch in 2.6.25-13