Vulnerability

CVE-2025-38448

mediumCVSS 3.1 4.7Published 25 Jul 2025

A plain-language summary of this CVE is being written; the description below is the NVD's own text.

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 products

From the NVD's configuration data (CPE), vendor first.

  • Debian debian linux
  • Linux linux kernel

Weakness type

References

Ingati scans your site every week and tells you when a CVE like this one affects something it found there.

Start scanning