Dan Carpenter
f4678b7808
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:18:25 +02:00
..
2019-04-27 09:33:58 +02:00
2018-05-02 07:53:42 -07:00
2019-06-11 12:24:10 +02:00
2019-06-22 08:18:22 +02:00
2019-03-23 08:44:16 +01:00
2019-06-11 12:24:00 +02:00
2019-05-16 19:45:02 +02:00
2018-11-27 16:08:01 +01:00
2018-04-13 19:50:05 +02:00
2019-04-27 09:33:52 +02:00
2019-06-11 12:24:04 +02:00
2019-06-22 08:18:20 +02:00
2019-03-23 08:44:35 +01:00
2019-06-11 12:24:01 +02:00
2019-02-20 10:13:09 +01:00
2019-06-11 12:24:07 +02:00
2018-11-10 07:41:40 -08:00
2019-06-22 08:18:21 +02:00
2018-10-10 08:52:06 +02:00
2019-06-11 12:24:01 +02:00
2018-05-30 07:48:52 +02:00
2019-04-03 06:23:20 +02:00
2019-06-22 08:18:21 +02:00
2019-06-22 08:18:24 +02:00
2019-06-11 12:24:03 +02:00
2018-03-24 10:58:42 +01:00
2019-01-13 10:05:27 +01:00
2019-06-11 12:24:00 +02:00
2019-06-11 12:23:44 +02:00
2019-06-22 08:18:22 +02:00
2018-12-21 14:09:52 +01:00
2018-02-25 11:03:51 +01:00
2019-06-11 12:24:02 +02:00
2019-06-11 12:23:59 +02:00
2019-05-16 19:45:03 +02:00
2019-06-22 08:18:19 +02:00
2019-03-23 08:44:27 +01:00
2019-06-22 08:18:25 +02:00
2019-04-27 09:33:51 +02:00
2018-09-19 22:48:57 +02:00
2019-06-22 08:18:23 +02:00
2019-06-11 12:24:12 +02:00
2019-06-11 12:23:46 +02:00
2019-02-20 10:13:09 +01:00
2018-05-30 07:48:58 +02:00
2019-06-22 08:18:19 +02:00
2019-06-22 08:18:23 +02:00
2019-06-11 12:24:00 +02:00
2019-02-20 10:13:17 +01:00
2019-06-22 08:18:25 +02:00
2019-02-20 10:13:20 +01:00
2018-05-30 07:48:55 +02:00
2019-05-16 19:45:05 +02:00
2018-07-11 16:03:47 +02:00
2019-06-22 08:18:20 +02:00
2018-12-01 09:46:35 +01:00
2019-06-11 12:24:13 +02:00
2019-03-23 08:44:37 +01:00
2019-06-22 08:18:21 +02:00
2018-11-21 09:27:30 +01:00
2018-03-22 09:23:26 +01:00
2018-01-23 19:50:16 +01:00
2019-06-11 12:23:57 +02:00
2019-06-22 08:18:20 +02:00
2019-06-11 12:23:49 +02:00
2018-04-13 19:50:05 +02:00
2019-02-20 10:13:05 +01:00
2019-06-22 08:18:21 +02:00
2019-04-27 09:33:53 +02:00
2019-06-11 12:23:54 +02:00
2019-06-11 12:24:09 +02:00
2018-12-21 14:09:52 +01:00
2019-06-22 08:18:23 +02:00
2019-06-22 08:18:20 +02:00
2019-06-22 08:18:21 +02:00
2019-06-11 12:23:53 +02:00
2019-06-11 12:24:02 +02:00
2019-03-23 08:44:35 +01:00
2018-11-21 09:27:36 +01:00
2019-04-27 09:33:57 +02:00
2018-04-24 09:32:07 +02:00
2019-06-22 08:18:25 +02:00
2018-11-27 16:08:02 +01:00
2019-06-22 08:18:24 +02:00
2018-10-10 08:52:04 +02:00
2019-05-16 19:45:01 +02:00
2019-01-13 10:05:28 +01:00
2019-06-22 08:18:21 +02:00
2019-05-16 19:45:18 +02:00
2018-08-06 16:24:42 +02:00
2019-06-11 12:23:55 +02:00
2018-05-30 07:49:03 +02:00
2019-06-11 12:24:13 +02:00
2018-05-30 07:49:11 +02:00
2018-02-25 11:03:38 +01:00