# CVE-2024-50255: Bluetooth: hci: fix null-ptr-deref in hci\_read\_supported\_codecs

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-11-09T10:15:08.658Z
- **Modified:** 2026-06-17T08:04:01.403Z

## Who should check

- Anyone running Linux \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 5d9054b9f769a8e124c4fa02072437c864726baf; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 1f1764466c33a4466363b821a25cd65c46a5a793; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 48d7c24b7ef6417c68f206566364db1f8087bb23; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 1e67d8641813f1876a42eeb4f532487b8a7fb0a8
- Anyone running Linux 5.17

## Description

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

Bluetooth: hci: fix null-ptr-deref in hci\_read\_supported\_codecs

Fix \_\_hci\_cmd\_sync\_sk() to return not NULL for unknown opcodes.

\_\_hci\_cmd\_sync\_sk() returns NULL if a command returns a status event.
However, it also returns NULL where an opcode doesn't exist in the
hci\_cc table because hci\_cmd\_complete\_evt() assumes status = skb-\>data\[0\]
for unknown opcodes.
This leads to null-ptr-deref in cmd\_sync for HCI\_OP\_READ\_LOCAL\_CODECS as
there is no hci\_cc for HCI\_OP\_READ\_LOCAL\_CODECS, which always assumes
status = skb-\>data\[0\].

KASAN: null-ptr-deref in range \[0x0000000000000070-0x0000000000000077\]
CPU: 1 PID: 2000 Comm: kworker/u9:5 Not tainted 6.9.0-ga6bcb805883c-dirty \#10
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.15.0-1 04/01/2014
Workqueue: hci7 hci\_power\_on
RIP: 0010:hci\_read\_supported\_codecs+0xb9/0x870 net/bluetooth/hci\_codec.c:138
Code: 08 48 89 ef e8 b8 c1 8f fd 48 8b 75 00 e9 96 00 00 00 49 89 c6 48 ba 00 00 00 00 00 fc ff df 4c 8d 60 70 4c 89 e3 48 c1 eb 03 \<0f\> b6 04 13 84 c0 0f 85 82 06 00 00 41 83 3c 24 02 77 0a e8 bf 78
RSP: 0018:ffff888120bafac8 EFLAGS: 00010212
RAX: 0000000000000000 RBX: 000000000000000e RCX: ffff8881173f0040
RDX: dffffc0000000000 RSI: ffffffffa58496c0 RDI: ffff88810b9ad1e4
RBP: ffff88810b9ac000 R08: ffffffffa77882a7 R09: 1ffffffff4ef1054
R10: dffffc0000000000 R11: fffffbfff4ef1055 R12: 0000000000000070
R13: 0000000000000000 R14: 0000000000000000 R15: ffff88810b9ac000
FS:  0000000000000000(0000) GS:ffff8881f6c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f6ddaa3439e CR3: 0000000139764003 CR4: 0000000000770ef0
PKRU: 55555554
Call Trace:
 \<TASK\>
 hci\_read\_local\_codecs\_sync net/bluetooth/hci\_sync.c:4546 \[inline\]
 hci\_init\_stage\_sync net/bluetooth/hci\_sync.c:3441 \[inline\]
 hci\_init4\_sync net/bluetooth/hci\_sync.c:4706 \[inline\]
 hci\_init\_sync net/bluetooth/hci\_sync.c:4742 \[inline\]
 hci\_dev\_init\_sync net/bluetooth/hci\_sync.c:4912 \[inline\]
 hci\_dev\_open\_sync+0x19a9/0x2d30 net/bluetooth/hci\_sync.c:4994
 hci\_dev\_do\_open net/bluetooth/hci\_core.c:483 \[inline\]
 hci\_power\_on+0x11e/0x560 net/bluetooth/hci\_core.c:1015
 process\_one\_work kernel/workqueue.c:3267 \[inline\]
 process\_scheduled\_works+0x8ef/0x14f0 kernel/workqueue.c:3348
 worker\_thread+0x91f/0xe50 kernel/workqueue.c:3429
 kthread+0x2cb/0x360 kernel/kthread.c:388
 ret\_from\_fork+0x4d/0x80 arch/x86/kernel/process.c:147
 ret\_from\_fork\_asm+0x1a/0x30 arch/x86/entry/entry\_64.S:244

## Affected and fixed versions

- Linux: \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 5d9054b9f769a8e124c4fa02072437c864726baf; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 1f1764466c33a4466363b821a25cd65c46a5a793; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 48d7c24b7ef6417c68f206566364db1f8087bb23; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 1e67d8641813f1876a42eeb4f532487b8a7fb0a8 (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

- Upgrade Linux to 1e67d8641813f1876a42eeb4f532487b8a7fb0a8 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-50255. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-50255.md
Affected: Linux >= abfeea476c68afea54c9c050a2d3b19d5d2ee873, < 5d9054b9f769a8e124c4fa02072437c864726baf; >= abfeea476c68afea54c9c050a2d3b19d5d2ee873, < 1f1764466c33a4466363b821a25cd65c46a5a793; >= abfeea476c68afea54c9c050a2d3b19d5d2ee873, < 48d7c24b7ef6417c68f206566364db1f8087bb23; >= abfeea476c68afea54c9c05…
Fixed in: Linux 5d9054b9f769a8e124c4fa02072437c864726baf, Linux 1f1764466c33a4466363b821a25cd65c46a5a793, Linux 48d7c24b7ef6417c68f206566364db1f8087bb23, Linux 1e67d8641813f1876a42eeb4f532487b8a7fb0a8

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

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

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

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

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

Linux \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 5d9054b9f769a8e124c4fa02072437c864726baf; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 1f1764466c33a4466363b821a25cd65c46a5a793; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 48d7c24b7ef6417c68f206566364db1f8087bb23; \>= abfeea476c68afea54c9c050a2d3b19d5d2ee873, \< 1e67d8641813f1876a42eeb4f532487b8a7fb0a8; Linux 5.17.

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

Yes. Fixed in Linux 5d9054b9f769a8e124c4fa02072437c864726baf, Linux 1f1764466c33a4466363b821a25cd65c46a5a793, Linux 48d7c24b7ef6417c68f206566364db1f8087bb23, Linux 1e67d8641813f1876a42eeb4f532487b8a7fb0a8. Upgrade Linux to 1e67d8641813f1876a42eeb4f532487b8a7fb0a8 or later.

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

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/5d9054b9f769a8e124c4fa02072437c864726baf>
- patch: <https://git.kernel.org/stable/c/1f1764466c33a4466363b821a25cd65c46a5a793>
- patch: <https://git.kernel.org/stable/c/48d7c24b7ef6417c68f206566364db1f8087bb23>
- patch: <https://git.kernel.org/stable/c/1e67d8641813f1876a42eeb4f532487b8a7fb0a8>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.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-50255>

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