Re: use-after-free in bluetooth (hci_conn_hash_flush)

From: Dave Jones
Date: Tue Mar 06 2012 - 10:22:22 EST


On Tue, Mar 06, 2012 at 10:53:44AM +0200, Andrei Emeltchenko wrote:

> On Mon, Mar 05, 2012 at 05:12:42PM -0500, Dave Jones wrote:
> > We had a user report this, which looks like a use after free
> > in hci_conn_hash_flush(). Probably related to bf4c63252490ba78fb833cc7acf1a5b1900c970f
>
> Yes most probably this is the reason.
>
> > Full report is at https://bugzilla.redhat.com/show_bug.cgi?id=797590
>
> Could you try following commit?
>
> commit 3c4e0df028935618d052235ba85bc7079be13394
> Author: Andrei Emeltchenko <andrei.emeltchenko@xxxxxxxxx>
> Date: Thu Feb 2 10:32:17 2012 +0200
>
> Bluetooth: Use list _safe deleting from conn_hash_list

Could you attach the patch ? I'll throw it into a Fedora build for
the user who saw this to test.

Dave

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/