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 ADFCE1FB3D1 for ; Mon, 21 Oct 2024 18:06:20 +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=1729533980; cv=none; b=MWgKtLVronUTECn9BOi8O3um0b4DuJKAj1gMomL5sUvdMxmb1tRy0mwhvxsHT+nBbi/SjpHrJenlOWPA3i9b6KBVLvf6ariQh2GnDKIayrcVASRCFcqTBv279Fgt9JR+fki5+p2NNQ6cjyWMJSp/fZFRjgekETAZoMhOooYMNvs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729533980; c=relaxed/simple; bh=pf+P/IZAd5VQDyu8Kf2kTd07tUqCmoQ7lbAGk497Slg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rvW6W/w2tLmZQbvtCdnlNK1nsDTscEFv9kW5meZo0phhup+rst4hTxBk6tgriqnyvyUM2rvAWJVh2YldWxOSyTEN8RWSm9/9yBmUU3ngJcpLZrNFedqpbPigzrxKFsMnSaSp7ZuQ6G+ghYi7P4nh6vXpuBoNNh/z6qCHEqIUiSI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=o6NtRNME; 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="o6NtRNME" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F293C4CEC3; Mon, 21 Oct 2024 18:06:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729533980; bh=pf+P/IZAd5VQDyu8Kf2kTd07tUqCmoQ7lbAGk497Slg=; h=From:To:Cc:Subject:Date:Reply-to:From; b=o6NtRNMEFJKnj5Fs+qmOSHdoi7SkP6S0J3y+P8eYPwY0WSlfpWPy+RB6Rqh50R5OH kXrRGJZIwLen0zvNbW1MtmcGfSDCFYqqFsEKi5+EiVUlFgm/MRyt4xTHwfaVjtyC5S XaqY0DL63dHpHcBGdAnLkY4y2E12mhsTMNxagVcY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-49951: Bluetooth: MGMT: Fix possible crash on mgmt_index_removed Date: Mon, 21 Oct 2024 20:02:39 +0200 Message-ID: <2024102130-CVE-2024-49951-a620@gregkh> X-Mailer: git-send-email 2.47.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2462; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=pf+P/IZAd5VQDyu8Kf2kTd07tUqCmoQ7lbAGk497Slg=; b=owGbwMvMwCRo6H6F97bub03G02pJDOli034xJHlp5LjULbtyTvryzk/NdVP0FrxLN3CMvbBW6 3AU2zTdjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE9gQLk4BmAivMsM8JeGCpYGM0VtMea5v XcC0dm+U819uhgUL712Le7n3iKvxlYq5Xus7E+6d+jsJAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: Bluetooth: MGMT: Fix possible crash on mgmt_index_removed If mgmt_index_removed is called while there are commands queued on cmd_sync it could lead to crashes like the bellow trace: 0x0000053D: __list_del_entry_valid_or_report+0x98/0xdc 0x0000053D: mgmt_pending_remove+0x18/0x58 [bluetooth] 0x0000053E: mgmt_remove_adv_monitor_complete+0x80/0x108 [bluetooth] 0x0000053E: hci_cmd_sync_work+0xbc/0x164 [bluetooth] So while handling mgmt_index_removed this attempts to dequeue commands passed as user_data to cmd_sync. The Linux kernel CVE team has assigned CVE-2024-49951 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 7cf5c2978f23 and fixed in 6.6.55 with commit 4883296505aa Issue introduced in 6.0 with commit 7cf5c2978f23 and fixed in 6.10.14 with commit 0cc47233af35 Issue introduced in 6.0 with commit 7cf5c2978f23 and fixed in 6.11.3 with commit 8c3f7943a291 Issue introduced in 6.0 with commit 7cf5c2978f23 and fixed in 6.12-rc2 with commit f53e1c9c726d 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-2024-49951 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/4883296505aa7e4863c6869b689afb6005633b23 https://git.kernel.org/stable/c/0cc47233af35fb5f10b5e6a027cb4ccd480caf9a https://git.kernel.org/stable/c/8c3f7943a29145d8a2d8e24893762f7673323eae https://git.kernel.org/stable/c/f53e1c9c726d83092167f2226f32bd3b73f26c21