CVE-2025-38448
usb: gadget: u_serial: Fix race condition in TTY wakeup
Check your servers for CVE-2025-38448
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38448 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.96% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before 18d58a467ccf011078352d91b4d6a0108c7318e8 affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before d43657b59f36e88289a6066f15bc9a80df5014eb affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before a5012673d49788f16bb4e375b002d7743eb642d9 affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before ee8d688e2ba558f3bb8ac225113740be5f335417 affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before c6eb4a05af3d0ba3bc4e8159287722fb9abc6359 affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before abf3620cba68e0e51e5c21054ce4f925f75b3661 affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before c8c80a3a35c2e3488409de2d5376ef7e662a2bf5 affected from 35f95fd7f234d2b58803bab6f6ebd6bb988050a2, before c529c3730bd09115684644e26bf01ecbd7e2c2c9
Other versions: unaffected
|
| Linux |
affected 3.5 unaffected before 3.5 unaffected from 5.4.296 up to and including 5.4.* unaffected from 5.10.240 up to and including 5.10.* unaffected from 5.15.189 up to and including 5.15.* unaffected from 6.1.146 up to and including 6.1.* unaffected from 6.6.99 up to and including 6.6.* unaffected from 6.12.39 up to and including 6.12.* unaffected from 6.15.7 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38448 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38448
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38448
trivy image --scanners vuln IMAGE | grep CVE-2025-38448
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/18d58a467ccf011078352d91b4d6a0108c7318e8 git.kernel.org
- https://git.kernel.org/stable/c/d43657b59f36e88289a6066f15bc9a80df5014eb git.kernel.org
- https://git.kernel.org/stable/c/a5012673d49788f16bb4e375b002d7743eb642d9 git.kernel.org
- https://git.kernel.org/stable/c/ee8d688e2ba558f3bb8ac225113740be5f335417 git.kernel.org
- https://git.kernel.org/stable/c/c6eb4a05af3d0ba3bc4e8159287722fb9abc6359 git.kernel.org
- https://git.kernel.org/stable/c/abf3620cba68e0e51e5c21054ce4f925f75b3661 git.kernel.org
- https://git.kernel.org/stable/c/c8c80a3a35c2e3488409de2d5376ef7e662a2bf5 git.kernel.org
- https://git.kernel.org/stable/c/c529c3730bd09115684644e26bf01ecbd7e2c2c9 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
Source: the record CVE-2025-38448 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse