# CVE-2026-64557: Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_new_connection_cb()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.29%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-07-29T08:01:47.462Z
- Modified: 2026-11-13T18:21:18.733Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

Bluetooth: L2CAP: Fix use-after-free in l2cap_sock_new_connection_cb()

l2cap_sock_new_connection_cb() returned l2cap_pi(sk)->chan after
release_sock(parent). Once the parent lock is dropped the newly
enqueued child socket sk is reachable via the accept queue, so another
task can accept and free it before the callback dereferences sk,
resulting in a use-after-free.

Rework the ->new_connection() op so the core, rather than the callback,
owns the child channel's lifetime. The op now receives a pre-allocated
new_chan and returns an errno instead of allocating and returning a
channel. l2cap_new_connection() allocates the child channel and links
it into the conn list via __l2cap_chan_add() before invoking the
callback, so the conn-list reference keeps the channel alive once
release_sock(parent) exposes the socket to other tasks.

Channel configuration that was duplicated in l2cap_sock_init() and the
various new_connection callbacks is consolidated into
l2cap_chan_set_defaults(), which now inherits from the parent channel
when one is supplied.

(As written by CVE List.)

## Affected

- Linux Linux: from 8ffb929098a56939ac71509302eeab5b207bf262 before b39298044e5534612511a2ff5de03ba5f6e7a820; from 8ffb929098a56939ac71509302eeab5b207bf262 before 8c37e4338c801ebb8cee52436c01c41e009f6e87; from 8ffb929098a56939ac71509302eeab5b207bf262 before 84e718b6a814edc84159361f9f454a4e92ae91ae; from 8ffb929098a56939ac71509302eeab5b207bf262 before 36da806f7fbaee56ad9e81859deec203f9728700; from 8ffb929098a56939ac71509302eeab5b207bf262 before 733e76e74e406c1d1ddc7369420dd8a47f48bb8a; from 8ffb929098a56939ac71509302eeab5b207bf262 before 6fef032af0092ed5ccb767239a9ac1bc38c08a40; 3.13 (not affected: before 3.13; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)
- linux linux_kernel: from 3.13 before 6.1.178; from 6.2 before 6.6.145; from 6.7 before 6.12.97; from 6.13 before 6.18.40; from 6.19 before 7.1.5; 7.2

## References

- <https://git.kernel.org/stable/c/b39298044e5534612511a2ff5de03ba5f6e7a820> (patch)
- <https://git.kernel.org/stable/c/8c37e4338c801ebb8cee52436c01c41e009f6e87> (patch)
- <https://git.kernel.org/stable/c/84e718b6a814edc84159361f9f454a4e92ae91ae> (patch)
- <https://git.kernel.org/stable/c/36da806f7fbaee56ad9e81859deec203f9728700> (patch)
- <https://git.kernel.org/stable/c/733e76e74e406c1d1ddc7369420dd8a47f48bb8a> (patch)
- <https://git.kernel.org/stable/c/6fef032af0092ed5ccb767239a9ac1bc38c08a40> (patch)

## Sources

- CVE List: [CVE-2026-64557](https://www.cve.org/CVERecord?id=CVE-2026-64557), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-64557](https://nvd.nist.gov/vuln/detail/CVE-2026-64557), Public domain, modified 2026-11-13

---

Page: https://cve.day/CVE-2026-64557 · Whole record: https://cve.day/CVE-2026-64557.json · Rebuilt by cve.day 2026-11-25T22:59:30.416Z
