# CVE-2024-53237: Bluetooth: fix use-after-free in device\_for\_each\_child()

> 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.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-12-27T13:50:23.150Z
- **Modified:** 2026-08-05T11:44:47.756Z

## Who should check

- Anyone running Linux \>= 3c4236f1b2a715e878a06599fa8b0cc21f165d28, \< 6894717a1ea363c5a27010ba604f957c309d282d; \>= 53d61daf35b1bbf3ae06e852ee107aa2f05b3776, \< fb91ce37dc9a37ea23cf32b6d7b667004e93d4c5; \>= ba7088769800d9892a7e4f35c3137a5b3e65410b, \< a9584c897d1cba6265c78010bbb45ca5722c88bc; \>= 87624b1f9b781549e69f92db7ede012a21cec275, \< 0f67ca2a80acf8b207240405b7f72d660665d3df; \>= 56a4fdde95ed98d864611155f6728983e199e198, \< de5a44f351ca7efd9add9851b218f5353e2224b7; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 91e2a2e4d1336333804cd31162984f01ad8cc70f; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 7b277bd569bb6a2777f0014f84b4344f444fd49d; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 27aabf27fd014ae037cc179c61b0bee7cff55b3d; 5c53afc766e07098429520b7677eaa164b593451; fc666d1b47518a18519241cae213de1babd4a4ba; …
- Anyone running Linux 6.7

## Description

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

Bluetooth: fix use-after-free in device\_for\_each\_child()

Syzbot has reported the following KASAN splat:

BUG: KASAN: slab-use-after-free in device\_for\_each\_child+0x18f/0x1a0
Read of size 8 at addr ffff88801f605308 by task kbnepd bnep0/4980

CPU: 0 UID: 0 PID: 4980 Comm: kbnepd bnep0 Not tainted 6.12.0-rc4-00161-gae90f6a6170d \#1
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.3-2.fc40 04/01/2014
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x100/0x190
 ? device\_for\_each\_child+0x18f/0x1a0
 print\_report+0x13a/0x4cb
 ? \_\_virt\_addr\_valid+0x5e/0x590
 ? \_\_phys\_addr+0xc6/0x150
 ? device\_for\_each\_child+0x18f/0x1a0
 kasan\_report+0xda/0x110
 ? device\_for\_each\_child+0x18f/0x1a0
 ? \_\_pfx\_dev\_memalloc\_noio+0x10/0x10
 device\_for\_each\_child+0x18f/0x1a0
 ? \_\_pfx\_device\_for\_each\_child+0x10/0x10
 pm\_runtime\_set\_memalloc\_noio+0xf2/0x180
 netdev\_unregister\_kobject+0x1ed/0x270
 unregister\_netdevice\_many\_notify+0x123c/0x1d80
 ? \_\_mutex\_trylock\_common+0xde/0x250
 ? \_\_pfx\_unregister\_netdevice\_many\_notify+0x10/0x10
 ? trace\_contention\_end+0xe6/0x140
 ? \_\_mutex\_lock+0x4e7/0x8f0
 ? \_\_pfx\_lock\_acquire.part.0+0x10/0x10
 ? rcu\_is\_watching+0x12/0xc0
 ? unregister\_netdev+0x12/0x30
 unregister\_netdevice\_queue+0x30d/0x3f0
 ? \_\_pfx\_unregister\_netdevice\_queue+0x10/0x10
 ? \_\_pfx\_down\_write+0x10/0x10
 unregister\_netdev+0x1c/0x30
 bnep\_session+0x1fb3/0x2ab0
 ? \_\_pfx\_bnep\_session+0x10/0x10
 ? \_\_pfx\_lock\_release+0x10/0x10
 ? \_\_pfx\_woken\_wake\_function+0x10/0x10
 ? \_\_kthread\_parkme+0x132/0x200
 ? \_\_pfx\_bnep\_session+0x10/0x10
 ? kthread+0x13a/0x370
 ? \_\_pfx\_bnep\_session+0x10/0x10
 kthread+0x2b7/0x370
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x48/0x80
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork\_asm+0x1a/0x30
 \</TASK\>

Allocated by task 4974:
 kasan\_save\_stack+0x30/0x50
 kasan\_save\_track+0x14/0x30
 \_\_kasan\_kmalloc+0xaa/0xb0
 \_\_kmalloc\_noprof+0x1d1/0x440
 hci\_alloc\_dev\_priv+0x1d/0x2820
 \_\_vhci\_create\_device+0xef/0x7d0
 vhci\_write+0x2c7/0x480
 vfs\_write+0x6a0/0xfc0
 ksys\_write+0x12f/0x260
 do\_syscall\_64+0xc7/0x250
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Freed by task 4979:
 kasan\_save\_stack+0x30/0x50
 kasan\_save\_track+0x14/0x30
 kasan\_save\_free\_info+0x3b/0x60
 \_\_kasan\_slab\_free+0x4f/0x70
 kfree+0x141/0x490
 hci\_release\_dev+0x4d9/0x600
 bt\_host\_release+0x6a/0xb0
 device\_release+0xa4/0x240
 kobject\_put+0x1ec/0x5a0
 put\_device+0x1f/0x30
 vhci\_release+0x81/0xf0
 \_\_fput+0x3f6/0xb30
 task\_work\_run+0x151/0x250
 do\_exit+0xa79/0x2c30
 do\_group\_exit+0xd5/0x2a0
 get\_signal+0x1fcd/0x2210
 arch\_do\_signal\_or\_restart+0x93/0x780
 syscall\_exit\_to\_user\_mode+0x140/0x290
 do\_syscall\_64+0xd4/0x250
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

In 'hci\_conn\_del\_sysfs()', 'device\_unregister()' may be called when
an underlying (kobject) reference counter is greater than 1. This
means that reparenting (happened when the device is actually freed)
is delayed and, during that delay, parent controller device (hciX)
may be deleted. Since the latter may create a dangling pointer to
freed parent, avoid that scenario by reparenting to NULL explicitly.

## Affected and fixed versions

- Linux: \>= 3c4236f1b2a715e878a06599fa8b0cc21f165d28, \< 6894717a1ea363c5a27010ba604f957c309d282d; \>= 53d61daf35b1bbf3ae06e852ee107aa2f05b3776, \< fb91ce37dc9a37ea23cf32b6d7b667004e93d4c5; \>= ba7088769800d9892a7e4f35c3137a5b3e65410b, \< a9584c897d1cba6265c78010bbb45ca5722c88bc; \>= 87624b1f9b781549e69f92db7ede012a21cec275, \< 0f67ca2a80acf8b207240405b7f72d660665d3df; \>= 56a4fdde95ed98d864611155f6728983e199e198, \< de5a44f351ca7efd9add9851b218f5353e2224b7; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 91e2a2e4d1336333804cd31162984f01ad8cc70f; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 7b277bd569bb6a2777f0014f84b4344f444fd49d; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 27aabf27fd014ae037cc179c61b0bee7cff55b3d; 5c53afc766e07098429520b7677eaa164b593451; fc666d1b47518a18519241cae213de1babd4a4ba; … (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-53237.md
Affected: Linux >= 3c4236f1b2a715e878a06599fa8b0cc21f165d28, < 6894717a1ea363c5a27010ba604f957c309d282d; >= 53d61daf35b1bbf3ae06e852ee107aa2f05b3776, < fb91ce37dc9a37ea23cf32b6d7b667004e93d4c5; >= ba7088769800d9892a7e4f35c3137a5b3e65410b, < a9584c897d1cba6265c78010bbb45ca5722c88bc; >= 87624b1f9b781549e69f92d…
Fixed in: Linux 6894717a1ea363c5a27010ba604f957c309d282d, Linux 0f67ca2a80acf8b207240405b7f72d660665d3df, Linux 91e2a2e4d1336333804cd31162984f01ad8cc70f, Linux 7b277bd569bb6a2777f0014f84b4344f444fd49d, Linux 27aabf27fd014ae037cc179c61b0bee7cff55b3d

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-53237 being exploited?

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

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

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

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

Linux \>= 3c4236f1b2a715e878a06599fa8b0cc21f165d28, \< 6894717a1ea363c5a27010ba604f957c309d282d; \>= 53d61daf35b1bbf3ae06e852ee107aa2f05b3776, \< fb91ce37dc9a37ea23cf32b6d7b667004e93d4c5; \>= ba7088769800d9892a7e4f35c3137a5b3e65410b, \< a9584c897d1cba6265c78010bbb45ca5722c88bc; \>= 87624b1f9b781549e69f92db7ede012a21cec275, \< 0f67ca2a80acf8b207240405b7f72d660665d3df; \>= 56a4fdde95ed98d864611155f6728983e199e198, \< de5a44f351ca7efd9add9851b218f5353e2224b7; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 91e2a2e4d1336333804cd31162984f01ad8cc70f; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 7b277bd569bb6a2777f0014f84b4344f444fd49d; \>= a85fb91e3d728bdfc80833167e8162cce8bc7004, \< 27aabf27fd014ae037cc179c61b0bee7cff55b3d; 5c53afc766e07098429520b7677eaa164b593451; fc666d1b47518a18519241cae213de1babd4a4ba; …; Linux 6.7.

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

Yes. Fixed in Linux 6894717a1ea363c5a27010ba604f957c309d282d, Linux 0f67ca2a80acf8b207240405b7f72d660665d3df, Linux 91e2a2e4d1336333804cd31162984f01ad8cc70f, Linux 7b277bd569bb6a2777f0014f84b4344f444fd49d, Linux 27aabf27fd014ae037cc179c61b0bee7cff55b3d. No fix listed yet: follow the vendor advisory.

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

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/fb91ce37dc9a37ea23cf32b6d7b667004e93d4c5>
- patch: <https://git.kernel.org/stable/c/a9584c897d1cba6265c78010bbb45ca5722c88bc>
- patch: <https://git.kernel.org/stable/c/0f67ca2a80acf8b207240405b7f72d660665d3df>
- patch: <https://git.kernel.org/stable/c/de5a44f351ca7efd9add9851b218f5353e2224b7>
- patch: <https://git.kernel.org/stable/c/91e2a2e4d1336333804cd31162984f01ad8cc70f>
- patch: <https://git.kernel.org/stable/c/7b277bd569bb6a2777f0014f84b4344f444fd49d>
- patch: <https://git.kernel.org/stable/c/27aabf27fd014ae037cc179c61b0bee7cff55b3d>
- other: <https://git.kernel.org/stable/c/6894717a1ea363c5a27010ba604f957c309d282d>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>

## 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-53237>

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