linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Luca Coelho <luca@coelho.fi>
Cc: linux-wireless@vger.kernel.org
Subject: Re: [PATCH] nl80211: check matches array length before acessing it
Date: Fri, 12 Dec 2014 12:33:39 +0100	[thread overview]
Message-ID: <1418384019.2470.18.camel@sipsolutions.net> (raw)
In-Reply-To: <1417426329-16099-1-git-send-email-luca@coelho.fi>

On Mon, 2014-12-01 at 11:32 +0200, Luca Coelho wrote:
> From: Luciano Coelho <luciano.coelho@intel.com>
> 
> If the userspace passes a malformed sched scan request (or a net
> detect wowlan configuration) by adding a NL80211_ATTR_SCHED_SCAN_MATCH
> attribute without any nested matchsets, a NULL pointer dereference
> will occur.  Fix this by checking that we do have matchsets in our
> array before trying to access it.

Applied, thanks.

johannes


      reply	other threads:[~2014-12-12 11:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-01  9:32 [PATCH] nl80211: check matches array length before acessing it Luca Coelho
2014-12-12 11:33 ` Johannes Berg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1418384019.2470.18.camel@sipsolutions.net \
    --to=johannes@sipsolutions.net \
    --cc=linux-wireless@vger.kernel.org \
    --cc=luca@coelho.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).