CVE-2025-38448

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-38448
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38448.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38448
Downstream
Related
Published
2025-07-25T15:27:30.040Z
Modified
2025-11-28T02:34:40.965157Z
Summary
usb: gadget: u_serial: Fix race condition in TTY wakeup
Details

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 gsstartio() calls either gsstartrx() or gsstarttx(), as those functions briefly drop the portlock for usbepqueue(). This allows gsclose() and gserialdisconnect() to clear port.tty and portusb, respectively.

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

Example CPU1: CPU2: gserialconnect() // lock gsclose() // await lock gsstartrx() // unlock usbepqueue() gsclose() // lock, reset port.tty and unlock gsstartrx() // lock ttywakeup() // NPE

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38448.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
35f95fd7f234d2b58803bab6f6ebd6bb988050a2
Fixed
18d58a467ccf011078352d91b4d6a0108c7318e8
Fixed
d43657b59f36e88289a6066f15bc9a80df5014eb
Fixed
a5012673d49788f16bb4e375b002d7743eb642d9
Fixed
ee8d688e2ba558f3bb8ac225113740be5f335417
Fixed
c6eb4a05af3d0ba3bc4e8159287722fb9abc6359
Fixed
abf3620cba68e0e51e5c21054ce4f925f75b3661
Fixed
c8c80a3a35c2e3488409de2d5376ef7e662a2bf5
Fixed
c529c3730bd09115684644e26bf01ecbd7e2c2c9

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
3.5.0
Fixed
5.4.296
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.240
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.189
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.146
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.99
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.39
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.15.7