From: "gregkh@linuxfoundation.org" <gregkh@linuxfoundation.org>
To: Guenter Roeck <linux@roeck-us.net>
Cc: Marcel Holtmann <marcel@holtmann.org>,
Gustavo Padovan <gustavo@padovan.org>,
Johan Hedberg <johan.hedberg@gmail.com>, Ben Seri <ben@armis.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: Bluetooth: Prevent stack info leak from the EFS element.
Date: Thu, 4 Jan 2018 16:58:37 +0100 [thread overview]
Message-ID: <20180104155837.GA30119@kroah.com> (raw)
In-Reply-To: <20180102202615.GA31737@roeck-us.net>
On Tue, Jan 02, 2018 at 12:26:15PM -0800, Guenter Roeck wrote:
> On Fri, Dec 08, 2017 at 03:14:47PM +0100, gregkh@linuxfoundation.org wrote:
> > From: Ben Seri <ben@armis.com>
> >
> > In the function l2cap_parse_conf_rsp and in the function
> > l2cap_parse_conf_req the following variable is declared without
> > initialization:
> >
> > struct l2cap_conf_efs efs;
> >
> > In addition, when parsing input configuration parameters in both of
> > these functions, the switch case for handling EFS elements may skip the
> > memcpy call that will write to the efs variable:
> >
> > ...
> > case L2CAP_CONF_EFS:
> > if (olen == sizeof(efs))
> > memcpy(&efs, (void *)val, olen);
> > ...
> >
> > The olen in the above if is attacker controlled, and regardless of that
> > if, in both of these functions the efs variable would eventually be
> > added to the outgoing configuration request that is being built:
> >
> > l2cap_add_conf_opt(&ptr, L2CAP_CONF_EFS, sizeof(efs), (unsigned long) &efs);
> >
> > So by sending a configuration request, or response, that contains an
> > L2CAP_CONF_EFS element, but with an element length that is not
> > sizeof(efs) - the memcpy to the uninitialized efs variable can be
> > avoided, and the uninitialized variable would be returned to the
> > attacker (16 bytes).
> >
> > This issue has been assigned CVE-2017-1000410
> >
> > Cc: Marcel Holtmann <marcel@holtmann.org>
> > Cc: Gustavo Padovan <gustavo@padovan.org>
> > Cc: Johan Hedberg <johan.hedberg@gmail.com>
> > Cc: stable <stable@vger.kernel.org>
> > Signed-off-by: Ben Seri <ben@armis.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> > ---
> > net/bluetooth/l2cap_core.c | 20 +++++++++++---------
> > 1 file changed, 11 insertions(+), 9 deletions(-)
> >
> > Marcel, for some reason this patch never got applied, despite lots of
> > advance notice. Please, someone queue it up as it resolves the above
> > very-well-reported issue.
> >
>
> This patch is still not upstream or in -next. Given that we (ChromeOS)
> are heavy Bluetooth users, I'll go ahead and apply it without waiting
> any longer. For my understanding and for tracking purposes, it would
> be useful to know why it is not being applied. Does anyone know ?
I have no idea what is going on here, I'm going to throw it in my
char-misc tree now, this really isn't acceptable at all.
greg k-h
prev parent reply other threads:[~2018-01-04 15:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-08 14:14 [PATCH] Bluetooth: Prevent stack info leak from the EFS element Greg Kroah-Hartman
2018-01-02 20:26 ` Guenter Roeck
2018-01-04 15:58 ` gregkh [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=20180104155837.GA30119@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=ben@armis.com \
--cc=gustavo@padovan.org \
--cc=johan.hedberg@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=marcel@holtmann.org \
--cc=netdev@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.