# CVE-2024-56604: Bluetooth: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc()

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-12-27T14:51:09.618Z
- Modified: 2026-08-05T11:45:24.947Z
- 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: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc()

bt_sock_alloc() attaches allocated sk object to the provided sock object.
If rfcomm_dlc_alloc() fails, we release the sk object, but leave the
dangling pointer in the sock object, which may cause use-after-free.

Fix this by swapping calls to bt_sock_alloc() and rfcomm_dlc_alloc().

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ac3eaac4cf142a15fe67be747a682b1416efeb6e; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6021ccc2471b7b95e29b7cfc7938e042bf56e281; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 32df687e129ef0f9afcbcc914f7c32deb28fd481; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 3945c799f12b8d1f49a3b48369ca494d981ac465; 2.6.12 (not affected: before 2.6.12; from 6.1.120 up to 6.1.*; from 6.6.66 up to 6.6.*; from 6.12.5 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: before 6.1.120; from 6.2 before 6.6.66; from 6.7 before 6.12.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/ac3eaac4cf142a15fe67be747a682b1416efeb6e> (patch)
- <https://git.kernel.org/stable/c/6021ccc2471b7b95e29b7cfc7938e042bf56e281> (patch)
- <https://git.kernel.org/stable/c/32df687e129ef0f9afcbcc914f7c32deb28fd481> (patch)
- <https://git.kernel.org/stable/c/3945c799f12b8d1f49a3b48369ca494d981ac465> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>

## Sources

- CVE List: [CVE-2024-56604](https://www.cve.org/CVERecord?id=CVE-2024-56604), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-56604](https://nvd.nist.gov/vuln/detail/CVE-2024-56604), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-56604 · Whole record: https://cve.day/CVE-2024-56604.json · Rebuilt by cve.day 2026-11-25T22:58:50.475Z
