mISDN: array underflow in open_bchannel()
There are two channels here. User space starts counting channels at one but in the kernel we start at zero. If the user passes in a zero channel that's invalid and could lead to memory corruption. Signed-off-by:Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/isdn/hardware/mISDN/avmfritz.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/avmfritz.c
- drivers/isdn/hardware/mISDN/hfcpci.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/hfcpci.c
- drivers/isdn/hardware/mISDN/hfcsusb.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/hfcsusb.c
- drivers/isdn/hardware/mISDN/mISDNipac.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/mISDNipac.c
- drivers/isdn/hardware/mISDN/mISDNisar.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/mISDNisar.c
- drivers/isdn/hardware/mISDN/netjet.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/netjet.c
- drivers/isdn/hardware/mISDN/w6692.c 1 addition, 1 deletiondrivers/isdn/hardware/mISDN/w6692.c
Please register or sign in to comment