Willem de Bruijn
75664d8037
ip: on queued skb use skb_header_pointer instead of pskb_may_pull
...
[ Upstream commit 4a06fa67c4da20148803525151845276cdb995c1 ]
Commit 2efd4fca703a ("ip: in cmsg IP(V6)_ORIGDSTADDR call
pskb_may_pull") avoided a read beyond the end of the skb linear
segment by calling pskb_may_pull.
That function can trigger a BUG_ON in pskb_expand_head if the skb is
shared, which it is when when peeking. It can also return ENOMEM.
Avoid both by switching to safer skb_header_pointer.
Fixes: 2efd4fca703a ("ip: in cmsg IP(V6)_ORIGDSTADDR call pskb_may_pull")
Reported-by: syzbot <syzkaller@googlegroups.com>
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-23 08:09:47 +01:00
..
2018-08-24 13:09:13 +02:00
2018-09-29 03:06:00 -07:00
2017-06-23 14:17:31 -04:00
2018-04-12 12:32:22 +02:00
2018-11-13 11:15:04 -08:00
2018-01-02 20:31:06 +01:00
2018-02-25 11:07:46 +01:00
2017-09-01 17:42:05 -07:00
2018-10-18 09:16:17 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-03 15:35:59 -07:00
2018-10-18 09:16:17 +02:00
2017-08-23 20:37:10 -07:00
2018-07-22 14:28:44 +02:00
2018-07-22 14:28:44 +02:00
2017-12-20 10:10:37 +01:00
2018-07-28 07:55:42 +02:00
2018-10-18 09:16:21 +02:00
2019-01-09 17:14:44 +01:00
2018-11-23 08:19:27 +01:00
2018-07-22 14:28:46 +02:00
2018-05-16 10:10:24 +02:00
2018-05-16 10:10:24 +02:00
2017-11-02 11:10:55 +01:00
2019-01-09 17:14:43 +01:00
2018-09-26 08:37:58 +02:00
2017-10-01 03:55:47 +01:00
2017-11-02 11:10:55 +01:00
2018-07-28 07:55:41 +02:00
2019-01-23 08:09:47 +01:00
2018-11-23 08:19:25 +01:00
2018-12-08 13:03:35 +01:00
2018-05-30 22:32:31 +02:00
2018-08-03 07:50:39 +02:00
2017-10-27 23:43:31 +09:00
2019-01-09 17:14:42 +01:00
2017-10-12 22:57:11 -07:00
2017-11-02 11:10:55 +01:00
2017-02-28 12:49:36 +01:00
2018-05-19 10:20:23 +02:00
2018-09-19 22:43:47 +02:00
2017-03-24 13:17:07 -07:00
2017-08-07 11:39:22 -07:00
2018-01-02 20:31:08 +01:00
2018-05-30 07:52:14 +02:00
2017-10-21 01:33:19 +01:00
2018-07-25 11:25:09 +02:00
2018-08-03 07:50:44 +02:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2017-09-01 17:42:05 -07:00
2017-08-06 21:25:10 -07:00
2018-08-24 13:09:17 +02:00
2017-09-01 18:38:09 -07:00
2018-09-19 22:43:47 +02:00
2017-08-06 21:25:10 -07:00
2017-08-06 21:25:10 -07:00
2018-05-30 07:52:06 +02:00
2018-10-18 09:16:20 +02:00
2018-10-18 09:16:21 +02:00
2017-05-17 16:06:01 -04:00
2017-11-02 11:10:55 +01:00
2018-09-15 09:45:25 +02:00
2018-04-26 11:02:13 +02:00
2018-01-31 14:03:47 +01:00
2018-12-17 09:28:55 +01:00
2017-07-24 17:28:12 -07:00
2018-01-02 20:31:09 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2018-03-31 18:10:38 +02:00
2018-09-15 09:45:29 +02:00
2017-12-25 14:26:30 +01:00
2017-11-02 11:10:55 +01:00
2017-08-06 21:25:10 -07:00
2017-08-30 11:20:08 -07:00
2017-08-06 21:25:10 -07:00
2018-12-01 09:42:51 +01:00
2018-06-26 08:06:28 +08:00
2017-11-02 11:10:55 +01:00
2018-07-22 14:28:44 +02:00
2017-07-24 13:52:59 -07:00
2018-11-04 14:52:49 +01:00
2018-11-04 14:52:37 +01:00
2017-06-16 11:48:39 -04:00
2018-11-04 14:52:37 +01:00
2017-04-14 10:07:39 +02:00
2017-04-14 10:06:10 +02:00
2018-05-30 07:52:14 +02:00
2017-02-09 10:22:17 +01:00
2017-11-02 11:10:55 +01:00