From mboxrd@z Thu Jan 1 00:00:00 1970 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 1B46E1A2C11 for ; Wed, 26 Feb 2025 01:58:40 +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=1740535120; cv=none; b=ElXwysvj6p/nfYD6/TY++ygJ3k1kJHrLQmpgy0LLpkAyocMOvKpue7Yyem13KOMCgIPyp/qcqqOOxpL6XVxSFW+KrtVYRrAcYg6rTNE/PyO6NBYM+owI3MzUD9ZhS8CAy2Ihrc9IBtgolCR3HNPM8BdlXCG8p00BUBpeLF3nvtw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535120; c=relaxed/simple; bh=HAcKJeaCt70/FgkhcWQa3QkUQFo8hsK+6Ciawn+IiJ8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=C0BVigVTrq0s0HReiRjmEOsZeXmOeLkiZ6Hcs5g+PK8WjhCNQLxJTFLaGk7NPSLQ0dbB/q0k7OYfT7rl35zLWrbymRTfStw0gbL4j/Sx0QaGu3Wa6s3Va3YP9bzizPfFqz0Aujl2UPTzI+84IpmJAJRYXWMT2HMH21id0YW9els= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=L7LzJrSx; 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="L7LzJrSx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E287DC4CEDD; Wed, 26 Feb 2025 01:58:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535120; bh=HAcKJeaCt70/FgkhcWQa3QkUQFo8hsK+6Ciawn+IiJ8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=L7LzJrSx+CoppNlIt5GWkspjLebq5Ar6D690cC1bSrFZGZai48TKbSwLpMjAe0Bvn aHTEFl/XMCzrfmoHGyTkhs5OW/5MPHkCC3EcjGSFp5EeTGGUxUTeQmxPzl79la0Plo 9rt7Phlh8VmsAniHl3ZAWolAccdsD4bjtl+Eb9w4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49136: Bluetooth: hci_sync: Fix queuing commands when HCI_UNREGISTER is set Date: Wed, 26 Feb 2025 02:55:41 +0100 Message-ID: <2025022606-CVE-2022-49136-033c@gregkh> X-Mailer: git-send-email 2.48.1 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=1814; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HAcKJeaCt70/FgkhcWQa3QkUQFo8hsK+6Ciawn+IiJ8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7Suy6OS/56atzGz+N62i4Fzt5sUosf0y+2+oPq/vk8 vR3r2rsiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInI9TMsmP4m9Hpe/EyTx89c nvsaTVlv81zZnmHB5vui7D+Cv3Pedb+or3eyQCv4RbUQAA== 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: hci_sync: Fix queuing commands when HCI_UNREGISTER is set hci_cmd_sync_queue shall return an error if HCI_UNREGISTER flag has been set as that means hci_unregister_dev has been called so it will likely cause a uaf after the timeout as the hdev will be freed. The Linux kernel CVE team has assigned CVE-2022-49136 to this issue. Affected and fixed versions =========================== Fixed in 5.17.3 with commit 1c69ef84a808676cceb69210addf5df45b741323 Fixed in 5.18 with commit 0b94f2651f56b9e4aa5f012b0d7eb57308c773cf 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-2022-49136 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/hci_sync.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/1c69ef84a808676cceb69210addf5df45b741323 https://git.kernel.org/stable/c/0b94f2651f56b9e4aa5f012b0d7eb57308c773cf