# CVE-2026-98739: Bluetooth: RFCOMM: Fix initial port reference race

> 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.18% (percentile 8, 2026-12-01)
- **Published:** 2026-10-18T15:47:23.653Z
- **Modified:** 2026-10-30T13:21:22.550Z

## Who should check

- Anyone running Linux \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< cd247e38b14df48d6b3940c4573a9f7acb10c363; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< d3dd18e85c140df72e0f2b5ee156ebfba04c06cb; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< c50360a019766fafa27318928bfea96dcce8a37d; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 55d162aa00d1ee33c3e6fa88b71f1e2d6e1441e9; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< a03ccf1ab77380d4c4a3c56552e12de4a83efa21; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 0a554901bd227537f79220443b2b36d585d62893; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< e5aa7fbf7a4446bb89f0b8394b2dfc1a6b6aba5b; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 2d696c1ed3468dcb62578a3911e687110d463520
- Anyone running Linux 3.15

## Description

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

Bluetooth: RFCOMM: Fix initial port reference race

For RFCOMM\_RELEASE\_ONHUP devices, rfcomm\_tty\_install() and
\_\_rfcomm\_release\_dev() both use RFCOMM\_TTY\_OWNED to decide who drops the
initial tty\_port reference. The release path tests the bit separately
from the install path setting it, so both can drop that reference.

The synchronous hangup does not prevent this race: port-\>tty is not
assigned until tty\_port\_open(), after installation. The following
interleaving is possible:

  1. Install and release each obtain a reference with rfcomm\_dev\_get().
  2. Release observes RFCOMM\_TTY\_OWNED clear.
  3. Install sets RFCOMM\_TTY\_OWNED and drops the initial reference.
  4. Release drops the same initial reference again.
  5. TTY cleanup drops its reference and frees the device.
  6. Release performs its final tty\_port\_put() on the freed port.

KASAN reported:

  BUG: KASAN: slab-use-after-free in tty\_port\_put+0x22/0x190
  Write of size 4 at addr ffff8881001d3d5c by task poc/92

  Call Trace:
   tty\_port\_put+0x22/0x190
   rfcomm\_dev\_ioctl+0x1d4/0x1930
   sock\_do\_ioctl+0x110/0x260
   sock\_ioctl+0x380/0x590
   \_\_x64\_sys\_ioctl+0x134/0x1c0

  Allocated by task 88:
   rfcomm\_dev\_ioctl+0x8f6/0x1930
   sock\_do\_ioctl+0x110/0x260
   sock\_ioctl+0x380/0x590
   \_\_x64\_sys\_ioctl+0x134/0x1c0

  Freed by task 65:
   kfree+0x131/0x3c0
   rfcomm\_dev\_destruct+0x23b/0x2f0
   release\_one\_tty+0xc1/0x370
   process\_one\_work+0x661/0x1090

Use test\_and\_set\_bit() in both paths so that only the caller that changes
RFCOMM\_TTY\_OWNED from clear to set drops the initial reference. Each path
keeps its own lookup reference until release or TTY cleanup, preserving
the existing callback ordering and error handling.

## Affected and fixed versions

- Linux: \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< cd247e38b14df48d6b3940c4573a9f7acb10c363; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< d3dd18e85c140df72e0f2b5ee156ebfba04c06cb; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< c50360a019766fafa27318928bfea96dcce8a37d; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 55d162aa00d1ee33c3e6fa88b71f1e2d6e1441e9; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< a03ccf1ab77380d4c4a3c56552e12de4a83efa21; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 0a554901bd227537f79220443b2b36d585d62893; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< e5aa7fbf7a4446bb89f0b8394b2dfc1a6b6aba5b; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 2d696c1ed3468dcb62578a3911e687110d463520 (cvelist)
- Linux: 3.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-98739.md
Affected: Linux >= 80ea73378af46b0023eb2f400d26c2a60248ffaa, < cd247e38b14df48d6b3940c4573a9f7acb10c363; >= 80ea73378af46b0023eb2f400d26c2a60248ffaa, < d3dd18e85c140df72e0f2b5ee156ebfba04c06cb; >= 80ea73378af46b0023eb2f400d26c2a60248ffaa, < c50360a019766fafa27318928bfea96dcce8a37d; >= 80ea73378af46b0023eb2f4…
Fixed in: Linux 55d162aa00d1ee33c3e6fa88b71f1e2d6e1441e9, Linux 0a554901bd227537f79220443b2b36d585d62893, Linux 2d696c1ed3468dcb62578a3911e687110d463520

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< cd247e38b14df48d6b3940c4573a9f7acb10c363; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< d3dd18e85c140df72e0f2b5ee156ebfba04c06cb; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< c50360a019766fafa27318928bfea96dcce8a37d; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 55d162aa00d1ee33c3e6fa88b71f1e2d6e1441e9; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< a03ccf1ab77380d4c4a3c56552e12de4a83efa21; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 0a554901bd227537f79220443b2b36d585d62893; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< e5aa7fbf7a4446bb89f0b8394b2dfc1a6b6aba5b; \>= 80ea73378af46b0023eb2f400d26c2a60248ffaa, \< 2d696c1ed3468dcb62578a3911e687110d463520; Linux 3.15.

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

Yes. Fixed in Linux 55d162aa00d1ee33c3e6fa88b71f1e2d6e1441e9, Linux 0a554901bd227537f79220443b2b36d585d62893, Linux 2d696c1ed3468dcb62578a3911e687110d463520. Upgrade Linux to 2d696c1ed3468dcb62578a3911e687110d463520 or later.

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

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/cd247e38b14df48d6b3940c4573a9f7acb10c363>
- other: <https://git.kernel.org/stable/c/d3dd18e85c140df72e0f2b5ee156ebfba04c06cb>
- other: <https://git.kernel.org/stable/c/c50360a019766fafa27318928bfea96dcce8a37d>
- other: <https://git.kernel.org/stable/c/55d162aa00d1ee33c3e6fa88b71f1e2d6e1441e9>
- other: <https://git.kernel.org/stable/c/a03ccf1ab77380d4c4a3c56552e12de4a83efa21>
- other: <https://git.kernel.org/stable/c/0a554901bd227537f79220443b2b36d585d62893>
- other: <https://git.kernel.org/stable/c/e5aa7fbf7a4446bb89f0b8394b2dfc1a6b6aba5b>
- other: <https://git.kernel.org/stable/c/2d696c1ed3468dcb62578a3911e687110d463520>

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

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