drivers/net/hamradio: Integer overflow in hdlcdrv_ioctl()
authorWenliang Fan <fanwlexca@gmail.com>
Tue, 17 Dec 2013 03:25:28 +0000 (11:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Dec 2013 20:02:14 +0000 (15:02 -0500)
commite9db5c21d3646a6454fcd04938dd215ac3ab620a
tree52bc7616461aff96f0a889317b2861ec8d301eab
parent0c8d087c04cdcef501064552149289866e53aa6c
drivers/net/hamradio: Integer overflow in hdlcdrv_ioctl()

The local variable 'bi' comes from userspace. If userspace passed a
large number to 'bi.data.calibrate', there would be an integer overflow
in the following line:
s->hdlctx.calibrate = bi.data.calibrate * s->par.bitrate / 16;

Signed-off-by: Wenliang Fan <fanwlexca@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/hdlcdrv.c