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 3931537FF77 for ; Wed, 22 Apr 2026 13:57:17 +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=1776866237; cv=none; b=MYG99WkuYl4Hi+6j0ocqs2ecnouh0mjXpTdqboeEsi792PU2QPgUUsUJDBgVA8MyykKVZ2KhQyVEa0Pd4QT2zL8IjwrBHm7tBjM80x2zUIgsN+Ml24jpb09VxhOLluCHbbbzpXjTVJarh4XWnOWBfz3D296Sd7NNOE5/MMeGV8s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776866237; c=relaxed/simple; bh=+kRVM9kiUP8ju/dPvvNM1kHzXgh00Ps3VNg6EB/3/F4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=tK2EkJr/JRc5A0HxvmClWH26akaBkQw6141+MX7xkkifSADI0WvUbHRssrNCdZjEHO0SRTH7zBJp2Q/LB8r02aQrgGqL/V/DyjD01qbplGxDFwMOIdSIbvTuhS15qx48NmDyVqvMUpkRFSTunP5slqyfa4nZivKEwwtgYzsbQt0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VIYI2yPZ; 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="VIYI2yPZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3468C2BCAF; Wed, 22 Apr 2026 13:57:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776866237; bh=+kRVM9kiUP8ju/dPvvNM1kHzXgh00Ps3VNg6EB/3/F4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=VIYI2yPZAT+zVG5geDyuSlnbkrLF6QZFO64G3sWtPXumqhnz6r+FpqbeL9Q9bZ6XZ KJr/zRWzHq/3t9usSjJ4/sI3Ddj7db+I1nvdOW6ZBE6XiU1TukLOAwCcyENNd7NPK0 NIy/PZN57URadtfrYtkZdqlYU+1EWYVIXpGto4Ro= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31510: Bluetooth: L2CAP: Fix null-ptr-deref on l2cap_sock_ready_cb Date: Wed, 22 Apr 2026 15:54:56 +0200 Message-ID: <2026042208-CVE-2026-31510-1c90@gregkh> X-Mailer: git-send-email 2.54.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=6611; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=5CbUoGXCwDQMPg+s9kHRoM2D9e4JD074ak0D0BNf/WE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJkvLjOY+nqcj19QmvC1QTo19I3MeZWTqj+EsnM9ZMuW3 F/DermtI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZiWc4wz3Dmh7OX0n5HnjvN UWjdNO1KodJjU4bZLHKtjveuaBwT6pD5s7Zpp9GrpPdRAA== 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: L2CAP: Fix null-ptr-deref on l2cap_sock_ready_cb Before using sk pointer, check if it is null. Fix the following: KASAN: null-ptr-deref in range [0x0000000000000260-0x0000000000000267] CPU: 0 UID: 0 PID: 5985 Comm: kworker/0:5 Not tainted 7.0.0-rc4-00029-ga989fde763f4 #1 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.17.0-9.fc43 06/10/2025 Workqueue: events l2cap_info_timeout RIP: 0010:kasan_byte_accessible+0x12/0x30 Code: 79 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 c3 cc cce veth0_macvtap: entered promiscuous mode RSP: 0018:ffffc90006e0f808 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff89746018 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff89746018 RDI: 000000000000004c RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffffff8aae3e70 R12: 0000000000000000 R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880983c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005582615a5008 CR3: 000000007007e000 CR4: 0000000000752ef0 PKRU: 55555554 Call Trace: __kasan_check_byte+0x12/0x40 lock_acquire+0x79/0x2e0 lock_sock_nested+0x48/0x100 ? l2cap_sock_ready_cb+0x46/0x160 l2cap_sock_ready_cb+0x46/0x160 l2cap_conn_start+0x779/0xff0 ? __pfx_l2cap_conn_start+0x10/0x10 ? l2cap_info_timeout+0x60/0xa0 ? __pfx___mutex_lock+0x10/0x10 l2cap_info_timeout+0x68/0xa0 ? process_scheduled_works+0xa8d/0x18c0 process_scheduled_works+0xb6e/0x18c0 ? __pfx_process_scheduled_works+0x10/0x10 ? assign_work+0x3d5/0x5e0 worker_thread+0xa53/0xfc0 kthread+0x388/0x470 ? __pfx_worker_thread+0x10/0x10 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x51e/0xb90 ? __pfx_ret_from_fork+0x10/0x10 veth1_macvtap: entered promiscuous mode ? __switch_to+0xc7d/0x1450 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 Modules linked in: ---[ end trace 0000000000000000 ]--- batman_adv: batadv0: Interface activated: batadv_slave_0 batman_adv: batadv0: Interface activated: batadv_slave_1 netdevsim netdevsim7 netdevsim0: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim7 netdevsim1: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim7 netdevsim2: set [1, 0] type 2 family 0 port 6081 - 0 netdevsim netdevsim7 netdevsim3: set [1, 0] type 2 family 0 port 6081 - 0 RIP: 0010:kasan_byte_accessible+0x12/0x30 Code: 79 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df <0f> b6 04 07 3c 08 0f 92 c0 c3 cc cce ieee80211 phy39: Selected rate control algorithm 'minstrel_ht' RSP: 0018:ffffc90006e0f808 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffffffff89746018 RCX: 0000000080000001 RDX: 0000000000000000 RSI: ffffffff89746018 RDI: 000000000000004c RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: dffffc0000000000 R11: ffffffff8aae3e70 R12: 0000000000000000 R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001 FS: 0000000000000000(0000) GS:ffff8880983c2000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7e16139e9c CR3: 000000000e74e000 CR4: 0000000000752ef0 PKRU: 55555554 Kernel panic - not syncing: Fatal exception The Linux kernel CVE team has assigned CVE-2026-31510 to this issue. Affected and fixed versions =========================== Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 5.10.253 with commit d34776c7fa1f2c510f1cdd14823aba701babb4ad Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 5.15.203 with commit 03d4eafb0f3788239df63575951f6b4c97bbfda4 Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 6.1.168 with commit 3c821bc0fbeaa27910a20d0b43c6008d099792af Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 6.6.131 with commit a04a760c06bb591989db659439efdf106f0bae76 Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 6.12.80 with commit 0780f9333852971ca77d110019e3a66ce5a7b100 Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 6.18.21 with commit 1dc6db047919ecd59493cd51248b37381bbabcbb Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 6.19.11 with commit 898b89c90ff9496e64b9331040778cc4e1b28c9d Issue introduced in 3.6 with commit 54a59aa2b562872781d6a8fc89f300d360941691 and fixed in 7.0 with commit b6552e0503973daf6f23bd6ed9273ef131ee364f 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-2026-31510 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/l2cap_sock.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/d34776c7fa1f2c510f1cdd14823aba701babb4ad https://git.kernel.org/stable/c/03d4eafb0f3788239df63575951f6b4c97bbfda4 https://git.kernel.org/stable/c/3c821bc0fbeaa27910a20d0b43c6008d099792af https://git.kernel.org/stable/c/a04a760c06bb591989db659439efdf106f0bae76 https://git.kernel.org/stable/c/0780f9333852971ca77d110019e3a66ce5a7b100 https://git.kernel.org/stable/c/1dc6db047919ecd59493cd51248b37381bbabcbb https://git.kernel.org/stable/c/898b89c90ff9496e64b9331040778cc4e1b28c9d https://git.kernel.org/stable/c/b6552e0503973daf6f23bd6ed9273ef131ee364f