gdth: Prevent negative offsets in ioctl CVE-2009-3080
commit174388981606378894ab74cae9467d5bbf0e5830
authorDave Jones <davej@redhat.com>
Mon, 19 Oct 2009 23:55:13 +0000 (19 19:55 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 8 Dec 2009 18:20:55 +0000 (8 10:20 -0800)
tree490815425a0e7de466e0bf31d468affa32ad0068
parent24fa7e7df85aae43e2ac0af24a56ca093a613460
gdth: Prevent negative offsets in ioctl CVE-2009-3080

commit 690e744869f3262855b83b4fb59199cf142765b0 upstream.

A negative offset could be used to index before the event buffer and
lead to a security breach.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/gdth.c