lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 7 Mar 2023 17:09:29 +0800 (GMT+08:00)
From:   慕冬亮 <dzm91@...t.edu.cn>
To:     "denis kirjanov" <dkirjanov@...e.de>
Cc:     "alexander aring" <alex.aring@...il.com>,
        "stefan schmidt" <stefan@...enfreihafen.org>,
        "miquel raynal" <miquel.raynal@...tlin.com>,
        "david s. miller" <davem@...emloft.net>,
        "eric dumazet" <edumazet@...gle.com>,
        "jakub kicinski" <kuba@...nel.org>,
        "paolo abeni" <pabeni@...hat.com>,
        syzbot+bd85b31816913a32e473@...kaller.appspotmail.com,
        linux-wpan@...r.kernel.org, netdev@...r.kernel.org,
        linux-kernel@...r.kernel.org
Subject: Re: Re: [PATCH] net: ieee802154: fix a null pointer in
 nl802154_trigger_scan




> -----原始邮件-----
> 发件人: "Denis Kirjanov" <dkirjanov@...e.de>
> 发送时间: 2023-03-07 16:43:46 (星期二)
> 收件人: "Dongliang Mu" <dzm91@...t.edu.cn>, "Alexander Aring" <alex.aring@...il.com>, "Stefan Schmidt" <stefan@...enfreihafen.org>, "Miquel Raynal" <miquel.raynal@...tlin.com>, "David S. Miller" <davem@...emloft.net>, "Eric Dumazet" <edumazet@...gle.com>, "Jakub Kicinski" <kuba@...nel.org>, "Paolo Abeni" <pabeni@...hat.com>
> 抄送: syzbot+bd85b31816913a32e473@...kaller.appspotmail.com, linux-wpan@...r.kernel.org, netdev@...r.kernel.org, linux-kernel@...r.kernel.org
> 主题: Re: [PATCH] net: ieee802154: fix a null pointer in nl802154_trigger_scan
> 
> 
> 
> On 3/7/23 10:30, Dongliang Mu wrote:
> > There is a null pointer dereference if NL802154_ATTR_SCAN_TYPE is
> > not set by the user.
> > 
> > Fix this by adding a null pointer check.
> > 
> > Reported-and-tested-by: syzbot+bd85b31816913a32e473@...kaller.appspotmail.com
> > Signed-off-by: Dongliang Mu <dzm91@...t.edu.cn>
> 
> Please add a Fixes: tag 

I've sent a v2 patch. Thanks for your reminder.

> 
> > ---
> >  net/ieee802154/nl802154.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > diff --git a/net/ieee802154/nl802154.c b/net/ieee802154/nl802154.c
> > index 2215f576ee37..1cf00cffd63f 100644
> > --- a/net/ieee802154/nl802154.c
> > +++ b/net/ieee802154/nl802154.c
> > @@ -1412,7 +1412,8 @@ static int nl802154_trigger_scan(struct sk_buff *skb, struct genl_info *info)
> >  		return -EOPNOTSUPP;
> >  	}
> >  
> > -	if (!nla_get_u8(info->attrs[NL802154_ATTR_SCAN_TYPE])) {
> > +	if (!info->attrs[NL802154_ATTR_SCAN_TYPE] ||
> > +	    !nla_get_u8(info->attrs[NL802154_ATTR_SCAN_TYPE])) {
> >  		NL_SET_ERR_MSG(info->extack, "Malformed request, missing scan type");
> >  		return -EINVAL;
> >  	}

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ