Linux kernel -stable discussions
 help / color / mirror / Atom feed
From: Sasha Levin <sashal@kernel.org>
To: stable@vger.kernel.org
Cc: Sasha Levin <sashal@kernel.org>,
	kernel-team@android.com, Lee Jones <lee@kernel.org>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Siwei Zhang <oss@fourdim.xyz>,
	Luiz Augusto von Dentz <luiz.von.dentz@intel.com>,
	Marco Elver <elver@google.com>, Todd Kjos <tkjos@google.com>
Subject: Re: [PATCH 6.1.y] Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref
Date: Thu,  6 Aug 2026 13:49:38 -0400	[thread overview]
Message-ID: <20260806131000.stable-0001@kernel.org> (raw)
In-Reply-To: <20260806005214.179730-1-tkjos@google.com>

On Thu, Aug 06, 2026 at 12:52:14AM +0000, Todd Kjos wrote:
> [ Upstream commit b66774b48dd98f07254951f74ea6f513efe7ff8b ]
>
> l2cap_chan_timeout() runs asynchronously and accesses chan->conn. If
> the connection is torn down while the timer is running or pending,
> chan->conn can be freed, leading to a use-after-free when the timer
> worker attempts to lock conn->lock:

Looks good. And I can also queue up d38eaf611839 ("Bluetooth: 6lowpan: Fix
using chan->conn as indication to no remote netdev") after the backport, but
your S-O-B is missing on the backport so we'll need it first :)

-- 
Thanks,
Sasha

  reply	other threads:[~2026-08-06 17:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-06  0:52 [PATCH 6.1.y] Bluetooth: L2CAP: Fix UAF in channel timeout by holding conn ref Todd Kjos
2026-08-06 17:49 ` Sasha Levin [this message]
2026-08-06 18:30   ` Todd Kjos
2026-08-07 11:45 ` Sasha Levin

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=20260806131000.stable-0001@kernel.org \
    --to=sashal@kernel.org \
    --cc=elver@google.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=kernel-team@android.com \
    --cc=lee@kernel.org \
    --cc=luiz.von.dentz@intel.com \
    --cc=oss@fourdim.xyz \
    --cc=stable@vger.kernel.org \
    --cc=tkjos@google.com \
    /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