7.8high
Bluetooth: L2CAP: do not leave dangling sk pointer on error in l2cap_sock_create()
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: do not leave dangling sk pointer on error in l2cap_sock_create() bt_sock_alloc() allocates the sk object and attaches it to the provided sock object. On error l2cap_sock_alloc() frees the sk object, but the dangling pointer is still attached to the sock object, which may create use-after-free in other code.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 49dfbb9129c4edb318578de35cc45c555df37884 before f6ad641646b67f29c7578dcd6c25813c7dcbf51e, from 49dfbb9129c4edb318578de35cc45c555df37884 before daa13175a6dea312a76099066cb4cbd4fc959a84, from 49dfbb9129c4edb318578de35cc45c555df37884 before a8677028dd5123e5e525b8195483994d87123de4, from 49dfbb9129c4edb318578de35cc45c555df37884 before bb2f2342a6ddf7c04f9aefbbfe86104cd138e629, from 49dfbb9129c4edb318578de35cc45c555df37884 before 8ad09ddc63ace3950ac43db6fbfe25b40f589dd6, from 49dfbb9129c4edb318578de35cc45c555df37884 before 61686abc2f3c2c67822aa23ce6f160467ec83d35, from 49dfbb9129c4edb318578de35cc45c555df37884 before 7c4f78cdb8e7501e9f92d291a7d956591bf73be9, 3.6 Not affected: before 3.6, from 5.4.287 up to 5.4.*, from 5.10.231 up to 5.10.*, from 5.15.174 up to 5.15.*, from 6.1.120 up to 6.1.*, from 6.6.66 up to 6.6.* | CVE List |
| linux linux_kernel | before 5.4.287, from 5.5 before 5.10.231, from 5.11 before 5.15.174, from 5.16 before 6.1.120, from 6.2 before 6.6.66, from 6.7 before 6.12.5 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: Bluetooth: L2CAP: do not leave dangling sk pointer on error in l2cap_sock_create() bt_sock_alloc() allocates the sk object and attaches it to the provided sock object. On error l2cap_sock_alloc() frees the sk object, but the dangling pointer is still attached to the sock object, which may create use-after-free in other code.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: Bluetooth: L2CAP: no dejar el puntero sk colgando en caso de error en l2cap_sock_create() bt_sock_alloc() asigna el objeto sk y lo adjunta al objeto sock proporcionado. En caso de error, l2cap_sock_alloc() libera el objeto sk, pero el puntero colgando sigue adjunto al objeto sock, lo que puede crear un use-after-free en otro código.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-56605 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2024-56605 changed 2026-06-17 | Public domain |