Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 716AD2D8792 for ; Sat, 6 Dec 2025 21:52:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057973; cv=none; b=BNbaCewtfSVuA7xAUYeQaYLTlfgJ8W4MZyqi4EQcagdavX1YO4/bIEoYge8j4aH9TvptV/M+eNqui/aJWlrREdGIzN7W7Ta+gfHeAe4kxvB75IiyIIcKjKW0Ectw6gU6V89kUBbvQOHIr8WrG13S5PVYSNrHGRkyzgmws/5cF5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765057973; c=relaxed/simple; bh=Cl10Ipo4meFuaI0nOboShy8hKWSeaZ1jRyLpH1TuF3s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=udxO1zTlRvGnKdGEb+hxwUHqlWHND+VBjaXpKgvoOea0kv+jQjMOct9IQ3wQX6r/kn8H9shReLfPMy80zHiuJLltqAw0xqYAiTTIKBE7I4nsAUbRonakLGWFe02d0SX52Hn+f9ihQARHn90ZWmEcd0TtAzi1rf2LH0Y/1IOFUf8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NRDNFVRv; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="NRDNFVRv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8673C4CEF5; Sat, 6 Dec 2025 21:52:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765057973; bh=Cl10Ipo4meFuaI0nOboShy8hKWSeaZ1jRyLpH1TuF3s=; h=From:To:Cc:Subject:Date:Reply-To:From; b=NRDNFVRvGYj3iq/dzA8+ucU9kgQOqfXMdYa/IwO71Iwi6Z5RnWQkAy405uvfLAEC7 dL9HQij6siliSv5Dfl+BeNYGcgRyZwF0QWsF9lF0ggUg+uTlnBV9O6cs43F8LsS6f6 iYzmdosrJdfzefU2nKopgQm12dxvvgYosVzd5/JY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40284: Bluetooth: MGMT: cancel mesh send timer when hdev removed Date: Sun, 7 Dec 2025 06:52:31 +0900 Message-ID: <2025120718-CVE-2025-40284-9c41@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3069; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Sycsg8mh0Xukqcbcdw5m2CKrLADAabJsHtFNg+nsE9U=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkmSyc9X19k/8h056LG1eIcHIFBbDpS99eYZHZpTH16r NHUZZp8RywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE4BfDPMOqUpfAJ+yy2Wf8 23QXW64zX+C/n2HBze27fxy/3brr9WbnuT/Mo3r77rt/AwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: cancel mesh send timer when hdev removed mesh_send_done timer is not canceled when hdev is removed, which causes crash if the timer triggers after hdev is gone. Cancel the timer when MGMT removes the hdev, like other MGMT timers. Should fix the BUG: sporadically seen by BlueZ test bot (in "Mesh - Send cancel - 1" test). Log: ------ BUG: KASAN: slab-use-after-free in run_timer_softirq+0x76b/0x7d0 ... Freed by task 36: kasan_save_stack+0x24/0x50 kasan_save_track+0x14/0x30 __kasan_save_free_info+0x3a/0x60 __kasan_slab_free+0x43/0x70 kfree+0x103/0x500 device_release+0x9a/0x210 kobject_put+0x100/0x1e0 vhci_release+0x18b/0x240 ------ The Linux kernel CVE team has assigned CVE-2025-40284 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.1.159 with commit 990e6143b0ca0c66f099d67d00c112bf59b30d76 Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.6.117 with commit 2927ff643607eddf4f03d10ef80fe10d977154aa Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.12.59 with commit 7b6b6c077cad0601d62c3c34ab7ce3fb25deda7b Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.17.9 with commit fd62ca5ad136dcf6f5aa308423b299a6be6f54ea Issue introduced in 6.1 with commit b338d91703fae6f6afd67f3f75caa3b8f36ddef3 and fixed in 6.18 with commit 55fb52ffdd62850d667ebed842815e072d3c9961 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-40284 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: net/bluetooth/mgmt.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/990e6143b0ca0c66f099d67d00c112bf59b30d76 https://git.kernel.org/stable/c/2927ff643607eddf4f03d10ef80fe10d977154aa https://git.kernel.org/stable/c/7b6b6c077cad0601d62c3c34ab7ce3fb25deda7b https://git.kernel.org/stable/c/fd62ca5ad136dcf6f5aa308423b299a6be6f54ea https://git.kernel.org/stable/c/55fb52ffdd62850d667ebed842815e072d3c9961