public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: dalegaard <noreply@github.com>
To: linux-bluetooth@vger.kernel.org
Subject: [bluez/bluez] 36962e: gatt-client: fix use-after-free
Date: Thu, 08 Jan 2026 02:27:42 -0800	[thread overview]
Message-ID: <bluez/bluez/push/refs/heads/1039830/000000-a16613@github.com> (raw)

  Branch: refs/heads/1039830
  Home:   https://github.com/bluez/bluez
  Commit: 36962eb519785db34582aeaca7b86de06c7151c1
      https://github.com/bluez/bluez/commit/36962eb519785db34582aeaca7b86de06c7151c1
  Author: Lasse Dalegaard <dalegaard@gmail.com>
  Date:   2026-01-08 (Thu, 08 Jan 2026)

  Changed paths:
    M src/gatt-client.c

  Log Message:
  -----------
  gatt-client: fix use-after-free

Clients with an acquired characteristic subscription would free the
client during disconnect. When notify_io_destroy then tries to remove
the client, it'll use-after-free.

Add another reference when allocating the notify_io and unref it again
in notify_io_destroy.


  Commit: a1661374ddb955ea63ac5da6f0fa5c33d3ef6cf0
      https://github.com/bluez/bluez/commit/a1661374ddb955ea63ac5da6f0fa5c33d3ef6cf0
  Author: Lasse Dalegaard <dalegaard@gmail.com>
  Date:   2026-01-08 (Thu, 08 Jan 2026)

  Changed paths:
    M src/device.c

  Log Message:
  -----------
  device: fix memory leak

device_add_eir_uuids creates a list of added UUIDs, but it was never
freed.


Compare: https://github.com/bluez/bluez/compare/36962eb51978%5E...a1661374ddb9

To unsubscribe from these emails, change your notification settings at https://github.com/bluez/bluez/settings/notifications

                 reply	other threads:[~2026-01-08 10:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=bluez/bluez/push/refs/heads/1039830/000000-a16613@github.com \
    --to=noreply@github.com \
    --cc=linux-bluetooth@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox