# CVE-2026-23115: serial: Fix not set tty-\>port race condition

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.12% (percentile 1, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2026-02-14T15:09:47.826Z
- **Modified:** 2026-06-17T10:20:55.473Z

## Who should check

- Anyone running Linux \>= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, \< 2501c49306238b54a2de0f93de43d50ab6e76c84; \>= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, \< 32f37e57583f869140cff445feedeea8a5fea986
- Anyone running Linux 6.15

## Description

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

serial: Fix not set tty-\>port race condition

Revert commit bfc467db60b7 ("serial: remove redundant
tty\_port\_link\_device()") because the tty\_port\_link\_device() is not
redundant: the tty-\>port has to be confured before we call
uart\_configure\_port(), otherwise user-space can open console without TTY
linked to the driver.

This tty\_port\_link\_device() was added explicitly to avoid this exact
issue in commit fb2b90014d78 ("tty: link tty and port before configuring
it as console"), so offending commit basically reverted the fix saying
it is redundant without addressing the actual race condition presented
there.

Reproducible always as tty-\>port warning on Qualcomm SoC with most of
devices disabled, so with very fast boot, and one serial device being
the console:

  printk: legacy console \[ttyMSM0\] enabled
  printk: legacy console \[ttyMSM0\] enabled
  printk: legacy bootconsole \[qcom\_geni0\] disabled
  printk: legacy bootconsole \[qcom\_geni0\] disabled
  ------------\[ cut here \]------------
  tty\_init\_dev: ttyMSM driver does not set tty-\>port. This would crash the kernel. Fix the driver!
  WARNING: drivers/tty/tty\_io.c:1414 at tty\_init\_dev.part.0+0x228/0x25c, CPU\#2: systemd/1
  Modules linked in: socinfo tcsrcc\_eliza gcc\_eliza sm3\_ce fuse ipv6
  CPU: 2 UID: 0 PID: 1 Comm: systemd Tainted: G S                  6.19.0-rc4-next-20260108-00024-g2202f4d30aa8 \#73 PREEMPT
  Tainted: \[S\]=CPU\_OUT\_OF\_SPEC
  Hardware name: Qualcomm Technologies, Inc. Eliza (DT)
  ...
  tty\_init\_dev.part.0 (drivers/tty/tty\_io.c:1414 (discriminator 11)) (P)
  tty\_open (arch/arm64/include/asm/atomic\_ll\_sc.h:95 (discriminator 3) drivers/tty/tty\_io.c:2073 (discriminator 3) drivers/tty/tty\_io.c:2120 (discriminator 3))
  chrdev\_open (fs/char\_dev.c:411)
  do\_dentry\_open (fs/open.c:962)
  vfs\_open (fs/open.c:1094)
  do\_open (fs/namei.c:4634)
  path\_openat (fs/namei.c:4793)
  do\_filp\_open (fs/namei.c:4820)
  do\_sys\_openat2 (fs/open.c:1391 (discriminator 3))
  ...
  Starting Network Name Resolution...

Apparently the flow with this small Yocto-based ramdisk user-space is:

driver (qcom\_geni\_serial.c):                  user-space:
============================                  ===========
qcom\_geni\_serial\_probe()
 uart\_add\_one\_port()
  serial\_core\_register\_port()
   serial\_core\_add\_one\_port()
    uart\_configure\_port()
     register\_console()
    \|
    \|                                         open console
    \|                                          ...
    \|                                          tty\_init\_dev()
    \|                                           driver-\>ports\[idx\] is NULL
    \|
    tty\_port\_register\_device\_attr\_serdev()
     tty\_port\_link\_device() \<- set driver-\>ports\[idx\]

## Affected and fixed versions

- Linux: \>= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, \< 2501c49306238b54a2de0f93de43d50ab6e76c84; \>= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, \< 32f37e57583f869140cff445feedeea8a5fea986 (cvelist)
- Linux: 6.15 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-23115.md
Affected: Linux >= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, < 2501c49306238b54a2de0f93de43d50ab6e76c84; >= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, < 32f37e57583f869140cff445feedeea8a5fea986; Linux 6.15
Fixed in: Linux 2501c49306238b54a2de0f93de43d50ab6e76c84, Linux 32f37e57583f869140cff445feedeea8a5fea986

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

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

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

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

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

Linux \>= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, \< 2501c49306238b54a2de0f93de43d50ab6e76c84; \>= bfc467db60b76c30ca1f7f02088a219b6d5b6e8c, \< 32f37e57583f869140cff445feedeea8a5fea986; Linux 6.15.

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

Yes. Fixed in Linux 2501c49306238b54a2de0f93de43d50ab6e76c84, Linux 32f37e57583f869140cff445feedeea8a5fea986. Upgrade Linux to 32f37e57583f869140cff445feedeea8a5fea986 or later.

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

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/2501c49306238b54a2de0f93de43d50ab6e76c84>
- patch: <https://git.kernel.org/stable/c/32f37e57583f869140cff445feedeea8a5fea986>

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

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