# CVE-2024-50029: Bluetooth: hci\_conn: Fix UAF in hci\_enhanced\_setup\_sync

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.44% (percentile 30, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T19:39:32.459Z
- **Modified:** 2026-09-14T12:17:33.670Z

## Who should check

- Anyone running Linux \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 9b666a0490379c860eab380dec19a864c0bc256b; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 867639300759e3e1c5b1e1a5ff89231f263a32a7; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 98ccd44002d88cbf4edfc4480df532a3da5a013e; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 18fd04ad856df07733f5bb07e7f7168e7443d393
- Anyone running Linux 6.1

## Description

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

Bluetooth: hci\_conn: Fix UAF in hci\_enhanced\_setup\_sync

This checks if the ACL connection remains valid as it could be destroyed
while hci\_enhanced\_setup\_sync is pending on cmd\_sync leading to the
following trace:

BUG: KASAN: slab-use-after-free in hci\_enhanced\_setup\_sync+0x91b/0xa60
Read of size 1 at addr ffff888002328ffd by task kworker/u5:2/37

CPU: 0 UID: 0 PID: 37 Comm: kworker/u5:2 Not tainted 6.11.0-rc6-01300-g810be445d8d6 \#7099
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-2.fc40 04/01/2014
Workqueue: hci0 hci\_cmd\_sync\_work
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x5d/0x80
 ? hci\_enhanced\_setup\_sync+0x91b/0xa60
 print\_report+0x152/0x4c0
 ? hci\_enhanced\_setup\_sync+0x91b/0xa60
 ? \_\_virt\_addr\_valid+0x1fa/0x420
 ? hci\_enhanced\_setup\_sync+0x91b/0xa60
 kasan\_report+0xda/0x1b0
 ? hci\_enhanced\_setup\_sync+0x91b/0xa60
 hci\_enhanced\_setup\_sync+0x91b/0xa60
 ? \_\_pfx\_hci\_enhanced\_setup\_sync+0x10/0x10
 ? \_\_pfx\_\_\_mutex\_lock+0x10/0x10
 hci\_cmd\_sync\_work+0x1c2/0x330
 process\_one\_work+0x7d9/0x1360
 ? \_\_pfx\_lock\_acquire+0x10/0x10
 ? \_\_pfx\_process\_one\_work+0x10/0x10
 ? assign\_work+0x167/0x240
 worker\_thread+0x5b7/0xf60
 ? \_\_kthread\_parkme+0xac/0x1c0
 ? \_\_pfx\_worker\_thread+0x10/0x10
 ? \_\_pfx\_worker\_thread+0x10/0x10
 kthread+0x293/0x360
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x2f/0x70
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork\_asm+0x1a/0x30
 \</TASK\>

Allocated by task 34:
 kasan\_save\_stack+0x30/0x50
 kasan\_save\_track+0x14/0x30
 \_\_kasan\_kmalloc+0x8f/0xa0
 \_\_hci\_conn\_add+0x187/0x17d0
 hci\_connect\_sco+0x2e1/0xb90
 sco\_sock\_connect+0x2a2/0xb80
 \_\_sys\_connect+0x227/0x2a0
 \_\_x64\_sys\_connect+0x6d/0xb0
 do\_syscall\_64+0x71/0x140
 entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

Freed by task 37:
 kasan\_save\_stack+0x30/0x50
 kasan\_save\_track+0x14/0x30
 kasan\_save\_free\_info+0x3b/0x60
 \_\_kasan\_slab\_free+0x101/0x160
 kfree+0xd0/0x250
 device\_release+0x9a/0x210
 kobject\_put+0x151/0x280
 hci\_conn\_del+0x448/0xbf0
 hci\_abort\_conn\_sync+0x46f/0x980
 hci\_cmd\_sync\_work+0x1c2/0x330
 process\_one\_work+0x7d9/0x1360
 worker\_thread+0x5b7/0xf60
 kthread+0x293/0x360
 ret\_from\_fork+0x2f/0x70
 ret\_from\_fork\_asm+0x1a/0x30

## Affected and fixed versions

- Linux: \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 9b666a0490379c860eab380dec19a864c0bc256b; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 867639300759e3e1c5b1e1a5ff89231f263a32a7; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 98ccd44002d88cbf4edfc4480df532a3da5a013e; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 18fd04ad856df07733f5bb07e7f7168e7443d393 (cvelist)
- Linux: 6.1 (cvelist)

## Mitigation

- Upgrade Linux to 18fd04ad856df07733f5bb07e7f7168e7443d393 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-50029. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50029.md
Affected: Linux >= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, < 9b666a0490379c860eab380dec19a864c0bc256b; >= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, < 867639300759e3e1c5b1e1a5ff89231f263a32a7; >= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, < 98ccd44002d88cbf4edfc4480df532a3da5a013e; >= e07a06b4eb417f5271d33ce…
Fixed in: Linux 9b666a0490379c860eab380dec19a864c0bc256b, Linux 867639300759e3e1c5b1e1a5ff89231f263a32a7, Linux 98ccd44002d88cbf4edfc4480df532a3da5a013e, Linux 18fd04ad856df07733f5bb07e7f7168e7443d393

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-50029 being exploited?

There is no confirmed exploitation: CVE-2024-50029 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.44% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-50029?

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-50029?

Linux \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 9b666a0490379c860eab380dec19a864c0bc256b; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 867639300759e3e1c5b1e1a5ff89231f263a32a7; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 98ccd44002d88cbf4edfc4480df532a3da5a013e; \>= e07a06b4eb417f5271d33ce2240e93c62d98b7b4, \< 18fd04ad856df07733f5bb07e7f7168e7443d393; Linux 6.1.

### Is there a fix for CVE-2024-50029?

Yes. Fixed in Linux 9b666a0490379c860eab380dec19a864c0bc256b, Linux 867639300759e3e1c5b1e1a5ff89231f263a32a7, Linux 98ccd44002d88cbf4edfc4480df532a3da5a013e, Linux 18fd04ad856df07733f5bb07e7f7168e7443d393. Upgrade Linux to 18fd04ad856df07733f5bb07e7f7168e7443d393 or later.

### How do I check if I'm affected by CVE-2024-50029?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/867639300759e3e1c5b1e1a5ff89231f263a32a7>
- patch: <https://git.kernel.org/stable/c/98ccd44002d88cbf4edfc4480df532a3da5a013e>
- patch: <https://git.kernel.org/stable/c/18fd04ad856df07733f5bb07e7f7168e7443d393>
- other: <https://git.kernel.org/stable/c/9b666a0490379c860eab380dec19a864c0bc256b>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-50029>

HTML: <https://flawdb.com/CVE-2024-50029> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-50029>
