# CVE-2024-27399: Bluetooth: l2cap: fix null-ptr-deref in l2cap\_chan\_timeout

> 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, NVD) `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.40% (percentile 26, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-13T10:24:57.045Z
- **Modified:** 2026-06-17T07:19:49.410Z

## Who should check

- Anyone running Linux \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< e137e2ba96e51902dc2878131823a96bf8e638ae; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 6466ee65e5b27161c846c73ef407f49dfa1bd1d9; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 06acb75e7ed600d0bbf7bff5628aa8f24a97978c; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< e97e16433eb4533083b096a3824b93a5ca3aee79; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 8960ff650aec70485b40771cd8e6e8c4cb467d33; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 955b5b6c54d95b5e7444dfc81c95c8e013f27ac0; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< eb86f955488c39526534211f2610e48a5cf8ead4; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< adf0398cee86643b8eacde95f17d073d022f782c
- Anyone running Linux 3.4

## Description

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

Bluetooth: l2cap: fix null-ptr-deref in l2cap\_chan\_timeout

There is a race condition between l2cap\_chan\_timeout() and
l2cap\_chan\_del(). When we use l2cap\_chan\_del() to delete the
channel, the chan-\>conn will be set to null. But the conn could
be dereferenced again in the mutex\_lock() of l2cap\_chan\_timeout().
As a result the null pointer dereference bug will happen. The
KASAN report triggered by POC is shown below:

\[  472.074580\] ==================================================================
\[  472.075284\] BUG: KASAN: null-ptr-deref in mutex\_lock+0x68/0xc0
\[  472.075308\] Write of size 8 at addr 0000000000000158 by task kworker/0:0/7
\[  472.075308\]
\[  472.075308\] CPU: 0 PID: 7 Comm: kworker/0:0 Not tainted 6.9.0-rc5-00356-g78c0094a146b \#36
\[  472.075308\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu4
\[  472.075308\] Workqueue: events l2cap\_chan\_timeout
\[  472.075308\] Call Trace:
\[  472.075308\]  \<TASK\>
\[  472.075308\]  dump\_stack\_lvl+0x137/0x1a0
\[  472.075308\]  print\_report+0x101/0x250
\[  472.075308\]  ? \_\_virt\_addr\_valid+0x77/0x160
\[  472.075308\]  ? mutex\_lock+0x68/0xc0
\[  472.075308\]  kasan\_report+0x139/0x170
\[  472.075308\]  ? mutex\_lock+0x68/0xc0
\[  472.075308\]  kasan\_check\_range+0x2c3/0x2e0
\[  472.075308\]  mutex\_lock+0x68/0xc0
\[  472.075308\]  l2cap\_chan\_timeout+0x181/0x300
\[  472.075308\]  process\_one\_work+0x5d2/0xe00
\[  472.075308\]  worker\_thread+0xe1d/0x1660
\[  472.075308\]  ? pr\_cont\_work+0x5e0/0x5e0
\[  472.075308\]  kthread+0x2b7/0x350
\[  472.075308\]  ? pr\_cont\_work+0x5e0/0x5e0
\[  472.075308\]  ? kthread\_blkcg+0xd0/0xd0
\[  472.075308\]  ret\_from\_fork+0x4d/0x80
\[  472.075308\]  ? kthread\_blkcg+0xd0/0xd0
\[  472.075308\]  ret\_from\_fork\_asm+0x11/0x20
\[  472.075308\]  \</TASK\>
\[  472.075308\] ==================================================================
\[  472.094860\] Disabling lock debugging due to kernel taint
\[  472.096136\] BUG: kernel NULL pointer dereference, address: 0000000000000158
\[  472.096136\] \#PF: supervisor write access in kernel mode
\[  472.096136\] \#PF: error\_code(0x0002) - not-present page
\[  472.096136\] PGD 0 P4D 0
\[  472.096136\] Oops: 0002 \[\#1\] PREEMPT SMP KASAN NOPTI
\[  472.096136\] CPU: 0 PID: 7 Comm: kworker/0:0 Tainted: G    B              6.9.0-rc5-00356-g78c0094a146b \#36
\[  472.096136\] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu4
\[  472.096136\] Workqueue: events l2cap\_chan\_timeout
\[  472.096136\] RIP: 0010:mutex\_lock+0x88/0xc0
\[  472.096136\] Code: be 08 00 00 00 e8 f8 23 1f fd 4c 89 f7 be 08 00 00 00 e8 eb 23 1f fd 42 80 3c 23 00 74 08 48 88
\[  472.096136\] RSP: 0018:ffff88800744fc78 EFLAGS: 00000246
\[  472.096136\] RAX: 0000000000000000 RBX: 1ffff11000e89f8f RCX: ffffffff8457c865
\[  472.096136\] RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff88800744fc78
\[  472.096136\] RBP: 0000000000000158 R08: ffff88800744fc7f R09: 1ffff11000e89f8f
\[  472.096136\] R10: dffffc0000000000 R11: ffffed1000e89f90 R12: dffffc0000000000
\[  472.096136\] R13: 0000000000000158 R14: ffff88800744fc78 R15: ffff888007405a00
\[  472.096136\] FS:  0000000000000000(0000) GS:ffff88806d200000(0000) knlGS:0000000000000000
\[  472.096136\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[  472.096136\] CR2: 0000000000000158 CR3: 000000000da32000 CR4: 00000000000006f0
\[  472.096136\] Call Trace:
\[  472.096136\]  \<TASK\>
\[  472.096136\]  ? \_\_die\_body+0x8d/0xe0
\[  472.096136\]  ? page\_fault\_oops+0x6b8/0x9a0
\[  472.096136\]  ? kernelmode\_fixup\_or\_oops+0x20c/0x2a0
\[  472.096136\]  ? do\_user\_addr\_fault+0x1027/0x1340
\[  472.096136\]  ? \_printk+0x7a/0xa0
\[  472.096136\]  ? mutex\_lock+0x68/0xc0
\[  472.096136\]  ? add\_taint+0x42/0xd0
\[  472.096136\]  ? exc\_page\_fault+0x6a/0x1b0
\[  472.096136\]  ? asm\_exc\_page\_fault+0x26/0x30
\[  472.096136\]  ? mutex\_lock+0x75/0xc0
\[  472.096136\]  ? mutex\_lock+0x88/0xc0
\[  472.096136\]  ? mutex\_lock+0x75/0xc0
\[  472.096136\]  l2cap\_chan\_timeo
---truncated---

## Affected and fixed versions

- Linux: \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< e137e2ba96e51902dc2878131823a96bf8e638ae; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 6466ee65e5b27161c846c73ef407f49dfa1bd1d9; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 06acb75e7ed600d0bbf7bff5628aa8f24a97978c; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< e97e16433eb4533083b096a3824b93a5ca3aee79; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 8960ff650aec70485b40771cd8e6e8c4cb467d33; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 955b5b6c54d95b5e7444dfc81c95c8e013f27ac0; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< eb86f955488c39526534211f2610e48a5cf8ead4; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< adf0398cee86643b8eacde95f17d073d022f782c (cvelist)
- Linux: 3.4 (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-27399. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-27399.md
Affected: Linux >= 3df91ea20e744344100b10ae69a17211fcf5b207, < e137e2ba96e51902dc2878131823a96bf8e638ae; >= 3df91ea20e744344100b10ae69a17211fcf5b207, < 6466ee65e5b27161c846c73ef407f49dfa1bd1d9; >= 3df91ea20e744344100b10ae69a17211fcf5b207, < 06acb75e7ed600d0bbf7bff5628aa8f24a97978c; >= 3df91ea20e744344100b10a…
Fixed in: Linux 6466ee65e5b27161c846c73ef407f49dfa1bd1d9, Linux 06acb75e7ed600d0bbf7bff5628aa8f24a97978c, Linux 8960ff650aec70485b40771cd8e6e8c4cb467d33, Linux 955b5b6c54d95b5e7444dfc81c95c8e013f27ac0

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

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

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

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

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

Linux \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< e137e2ba96e51902dc2878131823a96bf8e638ae; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 6466ee65e5b27161c846c73ef407f49dfa1bd1d9; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 06acb75e7ed600d0bbf7bff5628aa8f24a97978c; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< e97e16433eb4533083b096a3824b93a5ca3aee79; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 8960ff650aec70485b40771cd8e6e8c4cb467d33; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< 955b5b6c54d95b5e7444dfc81c95c8e013f27ac0; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< eb86f955488c39526534211f2610e48a5cf8ead4; \>= 3df91ea20e744344100b10ae69a17211fcf5b207, \< adf0398cee86643b8eacde95f17d073d022f782c; Linux 3.4.

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

Yes. Fixed in Linux 6466ee65e5b27161c846c73ef407f49dfa1bd1d9, Linux 06acb75e7ed600d0bbf7bff5628aa8f24a97978c, Linux 8960ff650aec70485b40771cd8e6e8c4cb467d33, Linux 955b5b6c54d95b5e7444dfc81c95c8e013f27ac0. No fix listed yet: follow the vendor advisory.

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

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/e137e2ba96e51902dc2878131823a96bf8e638ae>
- patch: <https://git.kernel.org/stable/c/6466ee65e5b27161c846c73ef407f49dfa1bd1d9>
- patch: <https://git.kernel.org/stable/c/06acb75e7ed600d0bbf7bff5628aa8f24a97978c>
- patch: <https://git.kernel.org/stable/c/e97e16433eb4533083b096a3824b93a5ca3aee79>
- patch: <https://git.kernel.org/stable/c/8960ff650aec70485b40771cd8e6e8c4cb467d33>
- patch: <https://git.kernel.org/stable/c/955b5b6c54d95b5e7444dfc81c95c8e013f27ac0>
- patch: <https://git.kernel.org/stable/c/eb86f955488c39526534211f2610e48a5cf8ead4>
- patch: <https://git.kernel.org/stable/c/adf0398cee86643b8eacde95f17d073d022f782c>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OTB4HWU2PTVW5NEYHHLOCXDKG3PYA534/>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DW2MIOIMOFUSNLHLRYX23AFR36BMKD65/>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>
- other: <https://security.netapp.com/advisory/ntap-20240926-0001/>

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

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