From: Dan Carpenter <dan.carpenter@oracle.com>
To: pizza@shaftnet.org
Cc: linux-wireless@vger.kernel.org
Subject: re: cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets
Date: Tue, 4 Jun 2013 06:09:55 -0700 (PDT) [thread overview]
Message-ID: <20130604130955.GA13788@debian> (raw)
Hello Solomon Peachy,
The patch a910e4a94f69: "cw1200: add driver for the ST-E CW1100 &
CW1200 WLAN chipsets" from May 24, 2013, has poor input validation
so the user could write to arbitrary memory.
Also I think this API looks like things which should be done with
normal ioctls. This driver only lets you load the firmware using a
very ugly custom debugfs interface?
drivers/net/wireless/cw1200/debug.c
454
455 if (!count)
456 goto done;
457
458 if (copy_from_user(etf->buf + etf->written, user_buf + written,
459 count)) {
"count" isn't capped so we could overwrite etf->written on the first
write and then write to arbitrary memery on the second write.
460 pr_err("copy_from_user (payload %zu) failed\n", count);
461 return -EFAULT;
462 }
regards,
dan carpenter
next reply other threads:[~2013-06-04 13:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-04 13:09 Dan Carpenter [this message]
2013-06-04 13:43 ` cw1200: add driver for the ST-E CW1100 & CW1200 WLAN chipsets Solomon Peachy
2013-06-05 8:06 ` Kalle Valo
2013-06-05 11:12 ` Solomon Peachy
2013-06-05 11:36 ` Kalle Valo
2013-06-05 19:11 ` Solomon Peachy
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=20130604130955.GA13788@debian \
--to=dan.carpenter@oracle.com \
--cc=linux-wireless@vger.kernel.org \
--cc=pizza@shaftnet.org \
/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