CVE-2024-56604

Bluetooth: RFCOMM: avoid leaving dangling sk pointer in rfcomm_sock_alloc()

HIGH
7.8
CVSS Score
Published: December 27, 2024 at 02:51 PM UTC
Updated: August 5, 2026 at 12:05 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.1.1202.6.12 ≤ v < 6.1.1202.6.12 ≤ v < 6.12.52.6.12 ≤ v < 6.132.6.12 ≤ v < 6.6.666.2 ≤ v < 6.6.666.7 ≤ v < 6.12.51da177e4c3f41524e886b7f1b8a0c1fc7321cac22.6.12
Vendor states this is fixed in 32df687e129ef0f9afcbcc914f7c32deb28fd481 (fixed)
Vendor states this is fixed in 3945c799f12b8d1f49a3b48369ca494d981ac465 (fixed)
Vendor states this is fixed in 6021ccc2471b7b95e29b7cfc7938e042bf56e281 (fixed)
Vendor states this is fixed in ac3eaac4cf142a15fe67be747a682b1416efeb6e (fixed)
Vendor states this is fixed in 2.6.12 (unaffected)
Vendor states this is fixed in 6.1.120 (unaffected)
Vendor states this is fixed in 6.12.5 (unaffected)
Vendor states this is fixed in 6.13 (unaffected)
Vendor states this is fixed in 6.6.66 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/32df687e129ef0f9afcbcc914f7c32deb28fd481
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3945c799f12b8d1f49a3b48369ca494d981ac465
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6021ccc2471b7b95e29b7cfc7938e042bf56e281
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ac3eaac4cf142a15fe67be747a682b1416efeb6e
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card