]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix buffer overflow in Omnikey CardMan 4040 driver (CVE-2007-0005)
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 11 Mar 2007 06:39:14 +0000 (07:39 +0100)
committerAdrian Bunk <bunk@stusta.de>
Sun, 11 Mar 2007 06:39:14 +0000 (07:39 +0100)
commitdfe67217aea3eb4ecbab736903f6ecee3458b8a8
tree4e5e0d69e311e09765dabd2da322faa3b6cb2638
parent59d2b001518d200ba99d213e41c892f5fe750d07
Fix buffer overflow in Omnikey CardMan 4040 driver (CVE-2007-0005)

Based on a patch from Don Howard <dhoward@redhat.com>

When calling write() with a buffer larger than 512 bytes, the
driver's write buffer overflows, allowing to overwrite the EIP and
execute arbitrary code with kernel privileges.

In read(), there exists a similar problem, but coming from the device.
A malicous or buggy device sending more than 512 bytes can overflow
of the driver's read buffer, with the same effects as above.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/char/pcmcia/cm4040_cs.c