Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1527861
| Path | csiph.com!goblin1!goblin.stu.neva.ru!enother.net!enother.net!enother.net!news.mixmin.net!aioe.org!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | David Ahern <dsa@cumulusnetworks.com> |
| Newsgroups | linux.kernel |
| Subject | Re: net/icmp: null-ptr-deref in icmp6_send |
| Date | Tue, 22 Nov 2016 20:20:01 +0100 |
| Message-ID | <sGoLL-2VW-19@gated-at.bofh.it> (permalink) |
| References | <sGguS-5Vy-15@gated-at.bofh.it> <sGnPH-2mW-9@gated-at.bofh.it> |
| X-Original-To | Cong Wang <xiyou.wangcong@gmail.com> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lcHsjjaKwYNnb3EGPMJoj4gwZcjiBgtidCBkVlvVUJk=; b=edh2hSCODEP2a0K/An7jo4eC8wPkmK/o4RXkAin8rJJEeAjGdxRHvnapLEC1yjLLPb jPkRoljMkkGNKwxMHuLiriT6thb4rOTyFAOcAmcJNMufrwrHTDguLIdZM/lqZp6MX2TW d4rkybn9B3MIlPRp4vkeNzybjet75Yq1giwWQ= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=lcHsjjaKwYNnb3EGPMJoj4gwZcjiBgtidCBkVlvVUJk=; b=fB+/6WN6qcM79Msn81ATnIPxg+jCDLn0zydIlpCXRWa3v5JDICSlYAd29Vkz5NlHyD ZN6eiQ5HxAOODRNbv5Qvqns9uMQoqWqXRKuRjr8bPrs/L/OOWi3G+9tIa0d/SnvaoDV6 gTuNALrvxLh4fShMCIMksL2o2lPW/mkC+z6eVZZOv0wHWQgMax6JYq+u6l1y2mna1cPD 8qGa5Nay/WTZ7CfhIUl+wPwQO4ZadckoGUCTV4uK89G1lmx88H85CnX++EC6nT6Al3FS Dmx0VZSbxQhXmdFHuva+mYSdSN6vWT6DdV2fSYbeWSeB9YyPx/hSpVM4ZfY9oml6irbN 3Mbg== |
| X-Gm-Message-State | AKaTC02SHUXGqaWdhsO3QXmzAbH5ZB34dPaTcdB14fSFdLvIadruFNTp12nnY7LUulAbewzU |
| X-Received | by 10.176.87.10 with SMTP id s10mr11032233uaa.52.1479842074653; Tue, 22 Nov 2016 11:14:34 -0800 (PST) |
| Content-Type | text/plain; charset=us-ascii |
| MIME-Version | 1.0 (1.0) |
| X-Mailer | iPhone Mail (14B100) |
| Content-Transfer-Encoding | quoted-printable |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 30 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Andrey Konovalov <andreyknvl@google.com>, "David S. Miller" <davem@davemloft.net>, Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>, James Morris <jmorris@namei.org>, Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>, Patrick McHardy <kaber@trash.net>, netdev <netdev@vger.kernel.org>, LKML <linux-kernel@vger.kernel.org>, Dmitry Vyukov <dvyukov@google.com>, Alexander Potapenko <glider@google.com>, Kostya Serebryany <kcc@google.com>, Eric Dumazet <edumazet@google.com>, syzkaller <syzkaller@googlegroups.com> |
| X-Original-Date | Tue, 22 Nov 2016 14:14:33 -0500 |
| X-Original-Message-ID | <59A60049-B985-43E8-84C7-B413A544AFF4@cumulusnetworks.com> |
| X-Original-References | <CAAeHK+wRE7y_0d7djWnq9S1O_w-1wQRq1g7VsAmzEAE+JY_v2Q@mail.gmail.com> <CAM_iQpUQtt2CGrYF4H2DJv_NRsmnBqkXj5rJVXD8osJBFz_qYw@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1527861 |
Show key headers only | View raw
Sent from my iPhone
> On Nov 22, 2016, at 1:11 PM, Cong Wang <xiyou.wangcong@gmail.com> wrote:
>
>> On Tue, Nov 22, 2016 at 2:23 AM, Andrey Konovalov <andreyknvl@google.com> wrote:
>> Hi,
>>
>> I've got the following error report while fuzzing the kernel with syzkaller.
>>
>> It seems that skb_dst(skb) may end up being NULL.
>>
>> As far as I can see the bug was introduced in commit 5d41ce29e ("net:
>> icmp6_send should use dst dev to determine L3 domain").
>> ICMP v4 probaly has similar issue due to 9d1a6c4ea ("net:
>> icmp_route_lookup should use rt dev to determine L3 domain").
>
>
> ipv6_parse_hopopts() is called before NF_INET_PRE_ROUTING,
> so the skb_dst could be NULL.
>
> I have no idea what commit 5d41ce29e tried to fix, but we already
> use skb->dev a few lines before l3mdev_master_ifindex(), so I don't
> understand why skb->dev could be NULL, maybe just for vrf dev?
On PTO this week and currently at the beach. Will take a look tonight. Thanks for the report.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
net/icmp: null-ptr-deref in icmp6_send Andrey Konovalov <andreyknvl@google.com> - 2016-11-22 11:30 +0100
Re: net/icmp: null-ptr-deref in icmp6_send Cong Wang <xiyou.wangcong@gmail.com> - 2016-11-22 19:20 +0100
Re: net/icmp: null-ptr-deref in icmp6_send David Ahern <dsa@cumulusnetworks.com> - 2016-11-22 20:20 +0100
Re: net/icmp: null-ptr-deref in icmp6_send David Ahern <dsa@cumulusnetworks.com> - 2016-11-23 04:20 +0100
csiph-web