CVE-2026-45835: Bluetooth: L2CAP: Fix null-ptr-deref in l2cap_sock_new_connection_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_new_connection_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-45835 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.1 with commit 80808e431e1ef25856457de82ce141bed6a6313a and fixed in 6.6.140 with commit ab77c8bc30269bee15d917059a66bea48909f5f0 Issue introduced in 3.1 with commit 80808e431e1ef25856457de82ce141bed6a6313a and fixed in 6.12.88 with commit bc3bb9f40da8e53896abc2d29c6d0c6686fe4ab9 Issue introduced in 3.1 with commit 80808e431e1ef25856457de82ce141bed6a6313a and fixed in 6.18.30 with commit 741e6024e31587b0c021b6616a9e428a4ea0b64a Issue introduced in 3.1 with commit 80808e431e1ef25856457de82ce141bed6a6313a and fixed in 7.0.7 with commit 76083fb80f5a38ac13326b2d810f66bd07771eea Issue introduced in 3.1 with commit 80808e431e1ef25856457de82ce141bed6a6313a and fixed in 7.1-rc3 with commit 0a120d96166301d7a95be75b52f843837dbd1219
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-45835
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/ab77c8bc30269bee15d917059a66bea48909f5f0 https://git.kernel.org/stable/c/bc3bb9f40da8e53896abc2d29c6d0c6686fe4ab9 https://git.kernel.org/stable/c/741e6024e31587b0c021b6616a9e428a4ea0b64a https://git.kernel.org/stable/c/76083fb80f5a38ac13326b2d810f66bd07771eea https://git.kernel.org/stable/c/0a120d96166301d7a95be75b52f843837dbd1219