From f46596c726e8bfc9ca7c92b71c1472914261dd99 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 1 Dec 2026 05:08:09 +0100 Subject: [PATCH] CVE-2026-98295/6.1: apply on top of the CVE-2024-58241 backport The backport changes the hci_unregister_dev() context to disable_work_sync(). Refresh the hunk context. The code change stays the same. Signed-off-by: Igor Pecovnik --- ...uetooth-coredump-quiesce-dump-work-on-unregister.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch b/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch index ca1a953..1a27d9d 100644 --- a/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch +++ b/cve/CVE-2026-98295/6.1/0001-d236517c264e-bluetooth-coredump-quiesce-dump-work-on-unregister.patch @@ -8,7 +8,7 @@ Subject: [PATCH] Bluetooth: coredump: Quiesce dump work on unregister commit d236517c264e41dc09833c708ef23bccb7a91219 upstream. -[ Backport: 6.1 uses cancel_work_sync() in hci_unregister_dev(); call hci_devcd_shutdown() after error_reset is cancelled, before hci_cmd_sync_clear(), as upstream does. ] +[ Backport: call hci_devcd_shutdown() after error_reset is disabled, before hci_cmd_sync_clear(), as upstream does. Needs the CVE-2024-58241 backport. ] [ Backport: coredump.h has no hci_devcd_state_name() in 6.1; context adjusted only. ] hci_devcd_handle_pkt_init() arms dump_timeout and coredump producers @@ -183,9 +183,9 @@ index 7ec3af3a4d0b4f..9d0e76ad99e02c 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -2722,6 +2722,7 @@ void hci_unregister_dev(struct hci_dev *hdev) - cancel_work_sync(&hdev->tx_work); - cancel_work_sync(&hdev->power_on); - cancel_work_sync(&hdev->error_reset); + disable_work_sync(&hdev->tx_work); + disable_work_sync(&hdev->power_on); + disable_work_sync(&hdev->error_reset); + hci_devcd_shutdown(hdev); hci_cmd_sync_clear(hdev);