# CVE-2026-98455: Bluetooth: RFCOMM: fix NULL dereference of dlc-\>session in RFCOMM\_CONNINFO

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-18T15:15:04.988Z
- **Modified:** 2026-10-19T10:18:54.803Z

## Who should check

- Anyone running Linux \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< c3aee3fc1287c8a555baf3895959087cb0c33fe8; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 4bf5ca47203049ce3648f750a53dcdc98bcc9e3e; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 1c4f7e1177da2f229be04139c27e5370a1cfba52; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 84ae3cfd7d3a63591a2eb4faa24faf678c6708aa; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< c7362f6a18ed167f52f08ce25eeec8a7818c5004; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 8f5b30cc12c409ff62891e47ed51e6bf0945a3ea; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 005b23d9e324fe5d0acbcfa70c625f2e81189046; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1
- Anyone running Linux 2.6.30

## Description

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

Bluetooth: RFCOMM: fix NULL dereference of dlc-\>session in RFCOMM\_CONNINFO

The RFCOMM\_CONNINFO getsockopt handler accepts a socket that is not
connected as long as deferred setup is enabled:

	if (sk-\>sk\_state != BT\_CONNECTED &&
				!rfcomm\_pi(sk)-\>dlc-\>defer\_setup) {
		err = -ENOTCONN;
		break;
	}
	l2cap\_sk = rfcomm\_pi(sk)-\>dlc-\>session-\>sock-\>sk;

dlc-\>defer\_setup is set in rfcomm\_sock\_init() when rfcomm\_connect\_ind()
creates a child socket for an incoming connection on a listening socket
that has BT\_DEFER\_SETUP enabled. It is never cleared afterwards. The
session, however, can go away underneath it.

rfcomm\_recv\_disc() forces the dlc state before tearing it down:

	d-\>state = BT\_CLOSED;
	\_\_rfcomm\_dlc\_close(d, err);

The RFCOMM\_DEFER\_SETUP early return in \_\_rfcomm\_dlc\_close() only covers
BT\_CONNECT, BT\_CONFIG, BT\_OPEN and BT\_CONNECT2, so with the state
already BT\_CLOSED that switch does not match and the function falls
through to rfcomm\_dlc\_unlink(), which sets d-\>session = NULL, while
d-\>defer\_setup stays 1.

A getsockopt(SOL\_RFCOMM, RFCOMM\_CONNINFO) on the accepted socket after
that point therefore skips the -ENOTCONN path -- sk-\>sk\_state is
BT\_CLOSED, but dlc-\>defer\_setup is still set -- and dereferences the
NULL session. No race is needed: once the DISC has been processed, the
dereference is unconditional.

Reproduced on a KASAN kernel under QEMU with a BR/EDR peer emulated over
/dev/vhci: the peer brings up an ACL link, opens L2CAP on the RFCOMM
PSM, starts a session and sends SABM for a channel bound with
BT\_DEFER\_SETUP, and sends DISC for that dlci after the socket has been
accepted. getsockopt(SOL\_RFCOMM, RFCOMM\_CONNINFO) on the accepted
socket then hits:

 Oops: general protection fault, probably for non-canonical address
 0xdffffc0000000002: 0000 \[\#1\] SMP KASAN PTI
 KASAN: null-ptr-deref in range \[0x0000000000000010-0x0000000000000017\]
 CPU: 1 UID: 0 PID: 150 Comm: init Tainted: G B 7.3.0-rc3-g5dd1818b15d9
 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996)
 RIP: 0010:rfcomm\_sock\_getsockopt+0x529/0x780
 Call Trace:
  \<TASK\>
  do\_sock\_getsockopt+0x3ad/0x7d0
  \_\_sys\_getsockopt+0x10e/0x1b0
  \_\_x64\_sys\_getsockopt+0xc2/0x160
  do\_syscall\_64+0xda/0x4b0
  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
  \</TASK\>

0x10 is the offset of sock in struct rfcomm\_session;
rfcomm\_sock\_getsockopt\_old() is inlined into rfcomm\_sock\_getsockopt().

Commit 43a556b2fd43 ("Bluetooth: RFCOMM: take rfcomm\_mutex for the
deferred setup accept") fixed the same "a remote DISC clears the session
while deferred setup is still flagged" problem in rfcomm\_dlc\_accept();
this is the remaining instance of it, in the getsockopt path.

Deferred setup only leaves a socket usable here once it has reached
BT\_CONNECT2, so restrict the exception to that state and check that a
session is actually present before following it.

## Affected and fixed versions

- Linux: \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< c3aee3fc1287c8a555baf3895959087cb0c33fe8; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 4bf5ca47203049ce3648f750a53dcdc98bcc9e3e; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 1c4f7e1177da2f229be04139c27e5370a1cfba52; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 84ae3cfd7d3a63591a2eb4faa24faf678c6708aa; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< c7362f6a18ed167f52f08ce25eeec8a7818c5004; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 8f5b30cc12c409ff62891e47ed51e6bf0945a3ea; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 005b23d9e324fe5d0acbcfa70c625f2e81189046; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1 (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-98455.md
Affected: Linux >= bb23c0ab824653be4aa7dfca15b07b3059717004, < c3aee3fc1287c8a555baf3895959087cb0c33fe8; >= bb23c0ab824653be4aa7dfca15b07b3059717004, < 4bf5ca47203049ce3648f750a53dcdc98bcc9e3e; >= bb23c0ab824653be4aa7dfca15b07b3059717004, < 1c4f7e1177da2f229be04139c27e5370a1cfba52; >= bb23c0ab824653be4aa7dfc…
Fixed in: Linux 4bf5ca47203049ce3648f750a53dcdc98bcc9e3e, Linux 1c4f7e1177da2f229be04139c27e5370a1cfba52, Linux 84ae3cfd7d3a63591a2eb4faa24faf678c6708aa, Linux 8f5b30cc12c409ff62891e47ed51e6bf0945a3ea, Linux 005b23d9e324fe5d0acbcfa70c625f2e81189046, Linux 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< c3aee3fc1287c8a555baf3895959087cb0c33fe8; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 4bf5ca47203049ce3648f750a53dcdc98bcc9e3e; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 1c4f7e1177da2f229be04139c27e5370a1cfba52; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 84ae3cfd7d3a63591a2eb4faa24faf678c6708aa; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< c7362f6a18ed167f52f08ce25eeec8a7818c5004; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 8f5b30cc12c409ff62891e47ed51e6bf0945a3ea; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 005b23d9e324fe5d0acbcfa70c625f2e81189046; \>= bb23c0ab824653be4aa7dfca15b07b3059717004, \< 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1; Linux 2.6.30.

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

Yes. Fixed in Linux 4bf5ca47203049ce3648f750a53dcdc98bcc9e3e, Linux 1c4f7e1177da2f229be04139c27e5370a1cfba52, Linux 84ae3cfd7d3a63591a2eb4faa24faf678c6708aa, Linux 8f5b30cc12c409ff62891e47ed51e6bf0945a3ea, Linux 005b23d9e324fe5d0acbcfa70c625f2e81189046, Linux 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1. Upgrade Linux to 46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1 or later.

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

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

- other: <https://git.kernel.org/stable/c/c3aee3fc1287c8a555baf3895959087cb0c33fe8>
- other: <https://git.kernel.org/stable/c/4bf5ca47203049ce3648f750a53dcdc98bcc9e3e>
- other: <https://git.kernel.org/stable/c/1c4f7e1177da2f229be04139c27e5370a1cfba52>
- other: <https://git.kernel.org/stable/c/84ae3cfd7d3a63591a2eb4faa24faf678c6708aa>
- other: <https://git.kernel.org/stable/c/c7362f6a18ed167f52f08ce25eeec8a7818c5004>
- other: <https://git.kernel.org/stable/c/8f5b30cc12c409ff62891e47ed51e6bf0945a3ea>
- other: <https://git.kernel.org/stable/c/005b23d9e324fe5d0acbcfa70c625f2e81189046>
- other: <https://git.kernel.org/stable/c/46f8ffd0a1f1eb6cbc94946a92c11ef601e228a1>

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

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