CVEvulnerability

CVE-2025-38448

4.7 MEDIUM Published 2025-07-25 Modified 2026-06-17 Official page ↗
Status
Analyzed
Published
2025-07-25
Last modified
2026-06-17
Assigner
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS 3.1 ([email protected])
4.7 MEDIUM — CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-362

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 configurations

• linux linux kernel (>= 3.5 < 5.4.296) • linux linux kernel (>= 5.5 < 5.10.240) • linux linux kernel (>= 5.11 < 5.15.189) • linux linux kernel (>= 5.16 < 6.1.146) • linux linux kernel (>= 6.2 < 6.6.99) • linux linux kernel (>= 6.7 < 6.12.39) • linux linux kernel (>= 6.13 < 6.15.7) • linux linux kernel 6.16 • debian debian linux 11.0

Related

Weakness · CWE (1)

  • CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization weakness

References