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 D2180446B4 for ; Tue, 21 May 2024 15:37:44 +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=1716305864; cv=none; b=t3ezD68QFh2bsQLMRcbchEVRVdUCMAaZpyo8ZehacPFa0FFqatEBwt2E7f+rgRD7p95XlWCSO8ZPiEs3lPXgH1ah8d7ktGWf2KiTeiKoTyEWYdVB2Dwrc/2kZGRDS4Q6mu494o1e7d452sjig0Bi6UFtfRlQpjYU/S5MmUr8YBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305864; c=relaxed/simple; bh=IVQx0nE1GNxQvQopqKjALjBALaOKTYn0LkdyVt2hIO8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ae2/rb5tUXTr8VdAbl6zWmt22gtsDK4SKZMbiXSMtG4ZfDkq9V4ASTfkEfprWm+X8tqdY2WJnwTii+FVF9HPoGk0HrWN6KIXzU8DXW6MjgGcWpdKw18JIH51HFBJteMCFH3wljPrSQDjd4VVnL5oUXliBWtRpJef5EYgTm4rZOs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GHd5NZEP; 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="GHd5NZEP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5C1E7C2BD11; Tue, 21 May 2024 15:37:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305864; bh=IVQx0nE1GNxQvQopqKjALjBALaOKTYn0LkdyVt2hIO8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GHd5NZEPHRqxTiJxXpuMI53ZuUEeySWw+HMfeWIVGZasfPzBsPnRXwcJcvfrRUAvE 2lu3YZe3X4ADCPrG84uiCcRXO9X9EzYnydYMYN2pFiujpxHCMseCMtHCCWA92B3RHa HB3L/VFmAh2VFdJAPHDGy2kzYkAmAYfB6FY1kOAo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52833: Bluetooth: btusb: Add date->evt_skb is NULL check Date: Tue, 21 May 2024 17:32:09 +0200 Message-ID: <2024052109-CVE-2023-52833-eee3@gregkh> X-Mailer: git-send-email 2.45.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=4198; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=IVQx0nE1GNxQvQopqKjALjBALaOKTYn0LkdyVt2hIO8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++2zrn5nxzlWR4XK9MrlFbf+0E9FnMsrs39k8F132V Jz5sp5oRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkCh/DXPHqWZeSPwqEr76o vvBnEaOc5WmWLQwLeuPfFj3lt86pCU4v6/fepudbvcsaAA== 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: btusb: Add date->evt_skb is NULL check fix crash because of null pointers [ 6104.969662] BUG: kernel NULL pointer dereference, address: 00000000000000c8 [ 6104.969667] #PF: supervisor read access in kernel mode [ 6104.969668] #PF: error_code(0x0000) - not-present page [ 6104.969670] PGD 0 P4D 0 [ 6104.969673] Oops: 0000 [#1] SMP NOPTI [ 6104.969684] RIP: 0010:btusb_mtk_hci_wmt_sync+0x144/0x220 [btusb] [ 6104.969688] RSP: 0018:ffffb8d681533d48 EFLAGS: 00010246 [ 6104.969689] RAX: 0000000000000000 RBX: ffff8ad560bb2000 RCX: 0000000000000006 [ 6104.969691] RDX: 0000000000000000 RSI: ffffb8d681533d08 RDI: 0000000000000000 [ 6104.969692] RBP: ffffb8d681533d70 R08: 0000000000000001 R09: 0000000000000001 [ 6104.969694] R10: 0000000000000001 R11: 00000000fa83b2da R12: ffff8ad461d1d7c0 [ 6104.969695] R13: 0000000000000000 R14: ffff8ad459618c18 R15: ffffb8d681533d90 [ 6104.969697] FS: 00007f5a1cab9d40(0000) GS:ffff8ad578200000(0000) knlGS:00000 [ 6104.969699] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 6104.969700] CR2: 00000000000000c8 CR3: 000000018620c001 CR4: 0000000000760ef0 [ 6104.969701] PKRU: 55555554 [ 6104.969702] Call Trace: [ 6104.969708] btusb_mtk_shutdown+0x44/0x80 [btusb] [ 6104.969732] hci_dev_do_close+0x470/0x5c0 [bluetooth] [ 6104.969748] hci_rfkill_set_block+0x56/0xa0 [bluetooth] [ 6104.969753] rfkill_set_block+0x92/0x160 [ 6104.969755] rfkill_fop_write+0x136/0x1e0 [ 6104.969759] __vfs_write+0x18/0x40 [ 6104.969761] vfs_write+0xdf/0x1c0 [ 6104.969763] ksys_write+0xb1/0xe0 [ 6104.969765] __x64_sys_write+0x1a/0x20 [ 6104.969769] do_syscall_64+0x51/0x180 [ 6104.969771] entry_SYSCALL_64_after_hwframe+0x44/0xa9 [ 6104.969773] RIP: 0033:0x7f5a21f18fef [ 6104.9] RSP: 002b:00007ffeefe39010 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 [ 6104.969780] RAX: ffffffffffffffda RBX: 000055c10a7560a0 RCX: 00007f5a21f18fef [ 6104.969781] RDX: 0000000000000008 RSI: 00007ffeefe39060 RDI: 0000000000000012 [ 6104.969782] RBP: 00007ffeefe39060 R08: 0000000000000000 R09: 0000000000000017 [ 6104.969784] R10: 00007ffeefe38d97 R11: 0000000000000293 R12: 0000000000000002 [ 6104.969785] R13: 00007ffeefe39220 R14: 00007ffeefe391a0 R15: 000055c10a72acf0 The Linux kernel CVE team has assigned CVE-2023-52833 to this issue. Affected and fixed versions =========================== Fixed in 5.10.202 with commit 9f8e4d1a4ca1 Fixed in 5.15.140 with commit f9de14bde56d Fixed in 6.1.64 with commit a556f2ef556a Fixed in 6.5.13 with commit 0048ddf045bd Fixed in 6.6.3 with commit 13b1ebad4c17 Fixed in 6.7 with commit 624820f7c882 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-2023-52833 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: drivers/bluetooth/btusb.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/9f8e4d1a4ca1179aaeb43f91f3e2a386e7e616b3 https://git.kernel.org/stable/c/f9de14bde56dcbb0765284c6dfc35842b021733c https://git.kernel.org/stable/c/a556f2ef556a04790f67f2fa272f1a77336d15a0 https://git.kernel.org/stable/c/0048ddf045bddc4dacb3e783fd869a2f8fb5be30 https://git.kernel.org/stable/c/13b1ebad4c175e6a9b0748acbf133c21a15d282a https://git.kernel.org/stable/c/624820f7c8826dd010e8b1963303c145f99816e9