Re: [PATCH iproute2] iproute2: fix use-after-free

2018-09-13 Thread महेश बंडेवार
On Thu, Sep 13, 2018 at 8:19 AM, Stephen Hemminger wrote: > > On Wed, 12 Sep 2018 23:07:20 -0700 > Mahesh Bandewar (महेश बंडेवार) wrote: > > > On Wed, Sep 12, 2018 at 5:33 PM, Stephen Hemminger > > wrote: > > > > > > On Wed, 12 Sep 2018 16:29:28 -0700 > > > Mahesh Bandewar wrote: > > > > > > >

Re: [PATCH iproute2] iproute2: fix use-after-free

2018-09-13 Thread Stephen Hemminger
On Wed, 12 Sep 2018 23:07:20 -0700 Mahesh Bandewar (महेश बंडेवार) wrote: > On Wed, Sep 12, 2018 at 5:33 PM, Stephen Hemminger > wrote: > > > > On Wed, 12 Sep 2018 16:29:28 -0700 > > Mahesh Bandewar wrote: > > > > > From: Mahesh Bandewar > > > > > > A local program using iproute2 lib pointed

Re: [PATCH iproute2] iproute2: fix use-after-free

2018-09-12 Thread महेश बंडेवार
On Wed, Sep 12, 2018 at 5:33 PM, Stephen Hemminger wrote: > > On Wed, 12 Sep 2018 16:29:28 -0700 > Mahesh Bandewar wrote: > > > From: Mahesh Bandewar > > > > A local program using iproute2 lib pointed out the issue and looking > > at the code it is pretty obvious - > > > > a = (struct nlmsgh

Re: [PATCH iproute2] iproute2: fix use-after-free

2018-09-12 Thread Stephen Hemminger
On Wed, 12 Sep 2018 16:29:28 -0700 Mahesh Bandewar wrote: > From: Mahesh Bandewar > > A local program using iproute2 lib pointed out the issue and looking > at the code it is pretty obvious - > > a = (struct nlmsghdr *)b; > ... > free(b); > if (a->nlmsg_seq == seq) > ... >

[PATCH iproute2] iproute2: fix use-after-free

2018-09-12 Thread Mahesh Bandewar
From: Mahesh Bandewar A local program using iproute2 lib pointed out the issue and looking at the code it is pretty obvious - a = (struct nlmsghdr *)b; ... free(b); if (a->nlmsg_seq == seq) ... Fixes: 86bf43c7c2fd ("lib/libnetlink: update rtnl_talk to support malloc buff at