Files
twx-linux/drivers
Dan Carpenter f13d6b305a mISDN: make sure device name is NUL terminated
[ Upstream commit ccfb62f27b ]

The user can change the device_name with the IMSETDEVNAME ioctl, but we
need to ensure that the user's name is NUL terminated.  Otherwise it
could result in a buffer overflow when we copy the name back to the user
with IMGETDEVINFO ioctl.

I also changed two strcpy() calls which handle the name to strscpy().
Hopefully, there aren't any other ways to create a too long name, but
it's nice to do this as a kernel hardening measure.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-06-22 08:17:22 +02:00
..
2019-05-14 19:19:34 +02:00
2019-06-11 12:22:44 +02:00
2019-06-22 08:17:18 +02:00
2018-12-21 14:11:37 +01:00
2019-05-14 19:19:34 +02:00
2018-12-21 14:11:36 +01:00
2018-11-13 11:17:02 -08:00
2018-11-27 16:09:41 +01:00
2019-04-27 09:34:40 +02:00
2019-05-31 06:48:15 -07:00