]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix buffer overflow in Omnikey CardMan 4040 driver (CVE-2007-0005)
authorMarcel Holtmann <marcel@holtmann.org>
Wed, 7 Mar 2007 18:22:40 +0000 (13:22 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Mar 2007 18:50:32 +0000 (10:50 -0800)
commit7670279989a552a7a8afd275368d55a4f3b5054b
treedeae130ab7a80eb75c7608ebae324a2211e81220
parent248059edc6503eac8baac39dad42e76383824720
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: Harald Welte <laforge@gnumonks.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/char/pcmcia/cm4040_cs.c