CVE-2026-45834: Bluetooth: L2CAP: Fix null-ptr-deref in l2cap_sock_state_change_cb()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: Fix null-ptr-deref in l2cap_sock_state_change_cb()
Add the same NULL guard already present inl2cap_sock_resume_cb() and l2cap_sock_ready_cb().
The Linux kernel CVE team has assigned CVE-2026-45834 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.1 with commit 89bc500e41fc5b48e0573e6b0d927fc97b8951dc and fixed in 6.6.140 with commit 5105f3e6b2df619c635b5f6a49fac131a36c7952 Issue introduced in 3.1 with commit 89bc500e41fc5b48e0573e6b0d927fc97b8951dc and fixed in 6.12.88 with commit c88c185ae0a1067823661b220aeea613df2c127b Issue introduced in 3.1 with commit 89bc500e41fc5b48e0573e6b0d927fc97b8951dc and fixed in 6.18.30 with commit 1810e42ff6716f320c7269d5850eca48b07b7427 Issue introduced in 3.1 with commit 89bc500e41fc5b48e0573e6b0d927fc97b8951dc and fixed in 7.0.7 with commit a2dcf1a61d056aef15b63c6eae9441344d624389 Issue introduced in 3.1 with commit 89bc500e41fc5b48e0573e6b0d927fc97b8951dc and fixed in 7.1-rc3 with commit 2ff1a41a912de8517b4482e946dd951b7d80edbf
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-45834
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/5105f3e6b2df619c635b5f6a49fac131a36c7952 https://git.kernel.org/stable/c/c88c185ae0a1067823661b220aeea613df2c127b https://git.kernel.org/stable/c/1810e42ff6716f320c7269d5850eca48b07b7427 https://git.kernel.org/stable/c/a2dcf1a61d056aef15b63c6eae9441344d624389 https://git.kernel.org/stable/c/2ff1a41a912de8517b4482e946dd951b7d80edbf