# CVE-2025-38448: usb: gadget: u\_serial: Fix race condition in TTY wakeup

> 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-07-25T15:27:30.040Z
- **Modified:** 2026-06-17T09:16:52.590Z

## Who should check

- Anyone running Linux \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< 18d58a467ccf011078352d91b4d6a0108c7318e8; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< d43657b59f36e88289a6066f15bc9a80df5014eb; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< a5012673d49788f16bb4e375b002d7743eb642d9; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< ee8d688e2ba558f3bb8ac225113740be5f335417; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c6eb4a05af3d0ba3bc4e8159287722fb9abc6359; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< abf3620cba68e0e51e5c21054ce4f925f75b3661; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c8c80a3a35c2e3488409de2d5376ef7e662a2bf5; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c529c3730bd09115684644e26bf01ecbd7e2c2c9
- Anyone running Linux 3.5

## Description

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

usb: gadget: u\_serial: Fix race condition in TTY wakeup

A race condition occurs when gs\_start\_io() calls either gs\_start\_rx() or
gs\_start\_tx(), as those functions briefly drop the port\_lock for
usb\_ep\_queue(). This allows gs\_close() and gserial\_disconnect() to clear
port.tty and port\_usb, respectively.

Use the null-safe TTY Port helper function to wake up TTY.

Example
  CPU1:			      CPU2:
  gserial\_connect() // lock
  			      gs\_close() // await lock
  gs\_start\_rx()     // unlock
  usb\_ep\_queue()
  			      gs\_close() // lock, reset port.tty and unlock
  gs\_start\_rx()     // lock
  tty\_wakeup()      // NPE

## Affected and fixed versions

- Linux: \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< 18d58a467ccf011078352d91b4d6a0108c7318e8; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< d43657b59f36e88289a6066f15bc9a80df5014eb; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< a5012673d49788f16bb4e375b002d7743eb642d9; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< ee8d688e2ba558f3bb8ac225113740be5f335417; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c6eb4a05af3d0ba3bc4e8159287722fb9abc6359; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< abf3620cba68e0e51e5c21054ce4f925f75b3661; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c8c80a3a35c2e3488409de2d5376ef7e662a2bf5; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c529c3730bd09115684644e26bf01ecbd7e2c2c9 (cvelist)
- Linux: 3.5 (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-2025-38448. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38448.md
Affected: Linux >= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < 18d58a467ccf011078352d91b4d6a0108c7318e8; >= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < d43657b59f36e88289a6066f15bc9a80df5014eb; >= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, < a5012673d49788f16bb4e375b002d7743eb642d9; >= 35f95fd7f234d2b58803bab…
Fixed in: Linux 18d58a467ccf011078352d91b4d6a0108c7318e8

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-2025-38448 being exploited?

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

### How serious is CVE-2025-38448?

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-2025-38448?

Linux \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< 18d58a467ccf011078352d91b4d6a0108c7318e8; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< d43657b59f36e88289a6066f15bc9a80df5014eb; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< a5012673d49788f16bb4e375b002d7743eb642d9; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< ee8d688e2ba558f3bb8ac225113740be5f335417; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c6eb4a05af3d0ba3bc4e8159287722fb9abc6359; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< abf3620cba68e0e51e5c21054ce4f925f75b3661; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c8c80a3a35c2e3488409de2d5376ef7e662a2bf5; \>= 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, \< c529c3730bd09115684644e26bf01ecbd7e2c2c9; Linux 3.5.

### Is there a fix for CVE-2025-38448?

Yes. Fixed in Linux 18d58a467ccf011078352d91b4d6a0108c7318e8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38448?

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/18d58a467ccf011078352d91b4d6a0108c7318e8>
- patch: <https://git.kernel.org/stable/c/d43657b59f36e88289a6066f15bc9a80df5014eb>
- patch: <https://git.kernel.org/stable/c/a5012673d49788f16bb4e375b002d7743eb642d9>
- patch: <https://git.kernel.org/stable/c/ee8d688e2ba558f3bb8ac225113740be5f335417>
- patch: <https://git.kernel.org/stable/c/c6eb4a05af3d0ba3bc4e8159287722fb9abc6359>
- patch: <https://git.kernel.org/stable/c/abf3620cba68e0e51e5c21054ce4f925f75b3661>
- patch: <https://git.kernel.org/stable/c/c8c80a3a35c2e3488409de2d5376ef7e662a2bf5>
- patch: <https://git.kernel.org/stable/c/c529c3730bd09115684644e26bf01ecbd7e2c2c9>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>

## 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-2025-38448>

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