# CVE-2026-31510: Bluetooth: L2CAP: Fix null-ptr-deref on l2cap\_sock\_ready\_cb

> 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.17% (percentile 4, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2026-04-22T13:54:28.712Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< d34776c7fa1f2c510f1cdd14823aba701babb4ad; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 03d4eafb0f3788239df63575951f6b4c97bbfda4; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 3c821bc0fbeaa27910a20d0b43c6008d099792af; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< a04a760c06bb591989db659439efdf106f0bae76; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 0780f9333852971ca77d110019e3a66ce5a7b100; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 1dc6db047919ecd59493cd51248b37381bbabcbb; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 898b89c90ff9496e64b9331040778cc4e1b28c9d; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< b6552e0503973daf6f23bd6ed9273ef131ee364f
- Anyone running Linux 3.6

## Description

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

Bluetooth: L2CAP: Fix null-ptr-deref on l2cap\_sock\_ready\_cb

Before using sk pointer, check if it is null.

Fix the following:

 KASAN: null-ptr-deref in range \[0x0000000000000260-0x0000000000000267\]
 CPU: 0 UID: 0 PID: 5985 Comm: kworker/0:5 Not tainted 7.0.0-rc4-00029-ga989fde763f4 \#1 PREEMPT(full)
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.17.0-9.fc43 06/10/2025
 Workqueue: events l2cap\_info\_timeout
 RIP: 0010:kasan\_byte\_accessible+0x12/0x30
 Code: 79 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df \<0f\> b6 04 07 3c 08 0f 92 c0 c3 cc cce
 veth0\_macvtap: entered promiscuous mode
 RSP: 0018:ffffc90006e0f808 EFLAGS: 00010202
 RAX: dffffc0000000000 RBX: ffffffff89746018 RCX: 0000000080000001
 RDX: 0000000000000000 RSI: ffffffff89746018 RDI: 000000000000004c
 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
 R10: dffffc0000000000 R11: ffffffff8aae3e70 R12: 0000000000000000
 R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001
 FS:  0000000000000000(0000) GS:ffff8880983c2000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00005582615a5008 CR3: 000000007007e000 CR4: 0000000000752ef0
 PKRU: 55555554
 Call Trace:
  \<TASK\>
  \_\_kasan\_check\_byte+0x12/0x40
  lock\_acquire+0x79/0x2e0
  lock\_sock\_nested+0x48/0x100
  ? l2cap\_sock\_ready\_cb+0x46/0x160
  l2cap\_sock\_ready\_cb+0x46/0x160
  l2cap\_conn\_start+0x779/0xff0
  ? \_\_pfx\_l2cap\_conn\_start+0x10/0x10
  ? l2cap\_info\_timeout+0x60/0xa0
  ? \_\_pfx\_\_\_mutex\_lock+0x10/0x10
  l2cap\_info\_timeout+0x68/0xa0
  ? process\_scheduled\_works+0xa8d/0x18c0
  process\_scheduled\_works+0xb6e/0x18c0
  ? \_\_pfx\_process\_scheduled\_works+0x10/0x10
  ? assign\_work+0x3d5/0x5e0
  worker\_thread+0xa53/0xfc0
  kthread+0x388/0x470
  ? \_\_pfx\_worker\_thread+0x10/0x10
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork+0x51e/0xb90
  ? \_\_pfx\_ret\_from\_fork+0x10/0x10
 veth1\_macvtap: entered promiscuous mode
  ? \_\_switch\_to+0xc7d/0x1450
  ? \_\_pfx\_kthread+0x10/0x10
  ret\_from\_fork\_asm+0x1a/0x30
  \</TASK\>
 Modules linked in:
 ---\[ end trace 0000000000000000 \]---
 batman\_adv: batadv0: Interface activated: batadv\_slave\_0
 batman\_adv: batadv0: Interface activated: batadv\_slave\_1
 netdevsim netdevsim7 netdevsim0: set \[1, 0\] type 2 family 0 port 6081 - 0
 netdevsim netdevsim7 netdevsim1: set \[1, 0\] type 2 family 0 port 6081 - 0
 netdevsim netdevsim7 netdevsim2: set \[1, 0\] type 2 family 0 port 6081 - 0
 netdevsim netdevsim7 netdevsim3: set \[1, 0\] type 2 family 0 port 6081 - 0
 RIP: 0010:kasan\_byte\_accessible+0x12/0x30
 Code: 79 ff ff ff 0f 1f 40 00 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 0f 1f 40 d6 48 c1 ef 03 48 b8 00 00 00 00 00 fc ff df \<0f\> b6 04 07 3c 08 0f 92 c0 c3 cc cce
 ieee80211 phy39: Selected rate control algorithm 'minstrel\_ht'
 RSP: 0018:ffffc90006e0f808 EFLAGS: 00010202
 RAX: dffffc0000000000 RBX: ffffffff89746018 RCX: 0000000080000001
 RDX: 0000000000000000 RSI: ffffffff89746018 RDI: 000000000000004c
 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
 R10: dffffc0000000000 R11: ffffffff8aae3e70 R12: 0000000000000000
 R13: 0000000000000260 R14: 0000000000000260 R15: 0000000000000001
 FS:  0000000000000000(0000) GS:ffff8880983c2000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007f7e16139e9c CR3: 000000000e74e000 CR4: 0000000000752ef0
 PKRU: 55555554
 Kernel panic - not syncing: Fatal exception

## Affected and fixed versions

- Linux: \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< d34776c7fa1f2c510f1cdd14823aba701babb4ad; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 03d4eafb0f3788239df63575951f6b4c97bbfda4; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 3c821bc0fbeaa27910a20d0b43c6008d099792af; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< a04a760c06bb591989db659439efdf106f0bae76; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 0780f9333852971ca77d110019e3a66ce5a7b100; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 1dc6db047919ecd59493cd51248b37381bbabcbb; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 898b89c90ff9496e64b9331040778cc4e1b28c9d; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< b6552e0503973daf6f23bd6ed9273ef131ee364f (cvelist)
- Linux: 3.6 (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-2026-31510. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31510.md
Affected: Linux >= 54a59aa2b562872781d6a8fc89f300d360941691, < d34776c7fa1f2c510f1cdd14823aba701babb4ad; >= 54a59aa2b562872781d6a8fc89f300d360941691, < 03d4eafb0f3788239df63575951f6b4c97bbfda4; >= 54a59aa2b562872781d6a8fc89f300d360941691, < 3c821bc0fbeaa27910a20d0b43c6008d099792af; >= 54a59aa2b562872781d6a8f…
Fixed in: Linux 03d4eafb0f3788239df63575951f6b4c97bbfda4, Linux 3c821bc0fbeaa27910a20d0b43c6008d099792af, Linux 0780f9333852971ca77d110019e3a66ce5a7b100, Linux 1dc6db047919ecd59493cd51248b37381bbabcbb, Linux 898b89c90ff9496e64b9331040778cc4e1b28c9d

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-2026-31510 being exploited?

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

### How serious is CVE-2026-31510?

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

### Which versions are affected by CVE-2026-31510?

Linux \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< d34776c7fa1f2c510f1cdd14823aba701babb4ad; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 03d4eafb0f3788239df63575951f6b4c97bbfda4; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 3c821bc0fbeaa27910a20d0b43c6008d099792af; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< a04a760c06bb591989db659439efdf106f0bae76; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 0780f9333852971ca77d110019e3a66ce5a7b100; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 1dc6db047919ecd59493cd51248b37381bbabcbb; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< 898b89c90ff9496e64b9331040778cc4e1b28c9d; \>= 54a59aa2b562872781d6a8fc89f300d360941691, \< b6552e0503973daf6f23bd6ed9273ef131ee364f; Linux 3.6.

### Is there a fix for CVE-2026-31510?

Yes. Fixed in Linux 03d4eafb0f3788239df63575951f6b4c97bbfda4, Linux 3c821bc0fbeaa27910a20d0b43c6008d099792af, Linux 0780f9333852971ca77d110019e3a66ce5a7b100, Linux 1dc6db047919ecd59493cd51248b37381bbabcbb, Linux 898b89c90ff9496e64b9331040778cc4e1b28c9d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-31510?

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/d34776c7fa1f2c510f1cdd14823aba701babb4ad>
- patch: <https://git.kernel.org/stable/c/03d4eafb0f3788239df63575951f6b4c97bbfda4>
- patch: <https://git.kernel.org/stable/c/3c821bc0fbeaa27910a20d0b43c6008d099792af>
- patch: <https://git.kernel.org/stable/c/a04a760c06bb591989db659439efdf106f0bae76>
- patch: <https://git.kernel.org/stable/c/0780f9333852971ca77d110019e3a66ce5a7b100>
- patch: <https://git.kernel.org/stable/c/1dc6db047919ecd59493cd51248b37381bbabcbb>
- patch: <https://git.kernel.org/stable/c/898b89c90ff9496e64b9331040778cc4e1b28c9d>
- patch: <https://git.kernel.org/stable/c/b6552e0503973daf6f23bd6ed9273ef131ee364f>

## 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-2026-31510>

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