Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1339869

[patch 5/6] Staging: gdm72xx: underflow bug in gdm_wimax_ioctl_get_data()

From Dan Carpenter <dan.carpenter@oracle.com>
Newsgroups linux.kernel
Subject [patch 5/6] Staging: gdm72xx: underflow bug in gdm_wimax_ioctl_get_data()
Date 2016-02-22 20:40 +0100
Message-ID <r54uS-2cu-33@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


"size" here should be unsigned, otherwise we might end up trying to copy
negative bytes in gdm_wimax_ioctl_get_data() resulting in an information
leak.

Reported-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/staging/gdm72xx/wm_ioctl.h b/drivers/staging/gdm72xx/wm_ioctl.h
index 631cb1d..032cb07 100644
--- a/drivers/staging/gdm72xx/wm_ioctl.h
+++ b/drivers/staging/gdm72xx/wm_ioctl.h
@@ -74,12 +74,12 @@ struct fsm_s {
 };
 
 struct data_s {
-	int	size;
+	unsigned int size;
 	void	*buf;
 };
 
 struct udata_s {
-	int		size;
+	unsigned int	size;
 	void __user	*buf;
 };
 

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[patch 5/6] Staging: gdm72xx: underflow bug in  gdm_wimax_ioctl_get_data() Dan Carpenter <dan.carpenter@oracle.com> - 2016-02-22 20:40 +0100

csiph-web