CVE-2025-38448 Details
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
A race condition vulnerability has been identified in the Linux kernel's USB gadget u_serial functionality. This issue arises when the function gs_start_io() invokes either gs_start_rx() or gs_start_tx(). These functions temporarily release the port_lock for usb_ep_queue(), creating a window where gs_close() and gserial_disconnect() can interfere by clearing port.tty and port_usb. The vulnerability has been addressed by using a null-safe TTY Port helper function to properly wake up the TTY.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/18d58a467ccf011078352d91b4d6a0108c7318e8 | kernel.org | Patch |
| https://git.kernel.org/stable/c/a5012673d49788f16bb4e375b002d7743eb642d9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/abf3620cba68e0e51e5c21054ce4f925f75b3661 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c529c3730bd09115684644e26bf01ecbd7e2c2c9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c6eb4a05af3d0ba3bc4e8159287722fb9abc6359 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c8c80a3a35c2e3488409de2d5376ef7e662a2bf5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/d43657b59f36e88289a6066f15bc9a80df5014eb | kernel.org | Patch |
| https://git.kernel.org/stable/c/ee8d688e2ba558f3bb8ac225113740be5f335417 | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html | CVE | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html | CVE | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.5, < 5.4.296 >= 5.5, < 5.10.240 >= 5.11, < 5.15.189 >= 5.16, < 6.1.146 >= 6.2, < 6.6.99 >= 6.7, < 6.12.39 >= 6.13, < 6.15.7 6.16 rc1 6.16 rc2 6.16 rc3 6.16 rc4 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 22, 2025 | Initial Analysis | [email protected] |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 25, 2025 | New CVE Received | kernel.org |