CVE-2026-63948: Bluetooth: L2CAP: fix chan ref leak in l2cap_chan_timeout() on !conn
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Bluetooth: L2CAP: fix chan ref leak in l2cap_chan_timeout() on !conn
__set_chan_timer() takes a l2cap_chan reference via l2cap_chan_hold() before scheduling the delayed work. The normal path in l2cap_chan_timeout() drops this reference with l2cap_chan_put() at the end, but the early return when chan->conn is NULL skips the put, leaking the reference.
Add the missing l2cap_chan_put() before the early return.
The Linux kernel CVE team has assigned CVE-2026-63948 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.10.217 with commit 06acb75e7ed600d0bbf7bff5628aa8f24a97978c and fixed in 5.10.259 with commit 50f1bcaaaa3a80bb1c3472044bc146e8d49d51ee Issue introduced in 5.15.159 with commit e97e16433eb4533083b096a3824b93a5ca3aee79 and fixed in 5.15.210 with commit b5c59a5b469e2a809a2d57eda4ded94235971060 Issue introduced in 6.1.91 with commit 8960ff650aec70485b40771cd8e6e8c4cb467d33 and fixed in 6.1.176 with commit 8894c2010435a56ce7c6c2a8785860c13554df2f Issue introduced in 6.6.31 with commit 955b5b6c54d95b5e7444dfc81c95c8e013f27ac0 and fixed in 6.6.143 with commit 63cd225cc13d782a85e2a73c04d0d350153eada1 Issue introduced in 6.9 with commit adf0398cee86643b8eacde95f17d073d022f782c and fixed in 6.12.93 with commit 107c826e4ef9ec5ad8f60e6fe64d8d5325ba508f Issue introduced in 6.9 with commit adf0398cee86643b8eacde95f17d073d022f782c and fixed in 6.18.35 with commit e8a5baff5be273ca07771fd2b9bb1f2a4152917b Issue introduced in 6.9 with commit adf0398cee86643b8eacde95f17d073d022f782c and fixed in 7.0.12 with commit 08d81fe96f80a8e20c7acb573b6a45d901fcf2cd Issue introduced in 6.9 with commit adf0398cee86643b8eacde95f17d073d022f782c and fixed in 7.1 with commit 9dbd84990394c51f5cee1e8871bb5ff8af5ed939 Issue introduced in 4.19.314 with commit e137e2ba96e51902dc2878131823a96bf8e638ae Issue introduced in 5.4.276 with commit 6466ee65e5b27161c846c73ef407f49dfa1bd1d9 Issue introduced in 6.8.10 with commit eb86f955488c39526534211f2610e48a5cf8ead4
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-63948
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_core.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/50f1bcaaaa3a80bb1c3472044bc146e8d49d51ee https://git.kernel.org/stable/c/b5c59a5b469e2a809a2d57eda4ded94235971060 https://git.kernel.org/stable/c/8894c2010435a56ce7c6c2a8785860c13554df2f https://git.kernel.org/stable/c/63cd225cc13d782a85e2a73c04d0d350153eada1 https://git.kernel.org/stable/c/107c826e4ef9ec5ad8f60e6fe64d8d5325ba508f https://git.kernel.org/stable/c/e8a5baff5be273ca07771fd2b9bb1f2a4152917b https://git.kernel.org/stable/c/08d81fe96f80a8e20c7acb573b6a45d901fcf2cd https://git.kernel.org/stable/c/9dbd84990394c51f5cee1e8871bb5ff8af5ed939