]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: comedi: fix infoleak to userspace
authorVasiliy Kulikov <segoon@openwall.com>
Sun, 26 Jun 2011 08:56:22 +0000 (12:56 +0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 May 2012 15:21:14 +0000 (11:21 -0400)
commit704e985bd8becc288fa649ddcf82f9e8ff9e5eab
treeb960a99a828ec156dc4d68a614aa661333e5f0ef
parent4f552082fd15c9ae2cc5cf9f1307432933ffe02d
staging: comedi: fix infoleak to userspace

commit 819cbb120eaec7e014e5abd029260db1ca8c5735 upstream.

driver_name and board_name are pointers to strings, not buffers of size
COMEDI_NAMELEN.  Copying COMEDI_NAMELEN bytes of a string containing
less than COMEDI_NAMELEN-1 bytes would leak some unrelated bytes.

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/staging/comedi/comedi_fops.c