Race Condition Vulnerability in Linux Kernel's USB Gadget - CVE-2025-38448

linux Updated 02 Oct 2025

Summary

25/07/2025
N/A
No i
Unrated
Not published

CVE-2025-38448: 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... Affects linux versions 5.10.103-1 – 6.9.9-1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The Linux kernel is a core component of many operating systems, providing essential functionalities such as process management, memory management, and hardware abstraction. The USB gadget subsystem allows for the creation of USB devices in software, enabling various functionalities. This vulnerability affects the USB gadget's serial driver, specifically the u_serial component, which is responsible for handling serial communication over USB. The vulnerability arises from a race condition that can lead to unexpected behavior and potential system instability.

Vulnerability Detail

In the Linux kernel, a race condition occurs when the gs_start_io() function calls either gs_start_rx() or gs_start_tx(). During this process, the port_lock is briefly dropped, allowing gs_close() and gserial_disconnect() to clear critical pointers such as port.tty and port_usb. This can lead to a null pointer dereference (NPE) when the TTY wakeup function is called, potentially causing system crashes or undefined behavior. The vulnerability is classified under CVE-2025-38448 and affects multiple Debian versions.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, users can avoid using the affected USB gadget functionalities until the patch is applied. This may involve disabling specific USB gadget drivers or using alternative communication methods.

Conclusion

CVE-2025-38448 is a significant vulnerability in the Linux kernel's USB gadget subsystem that can lead to critical system issues. It is crucial for users to update their systems to the patched version of the Linux kernel to mitigate the risks associated with this vulnerability. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for linux →

Share this vulnerability

FAQ

CVE-2025-38448 is a race condition vulnerability in the Linux kernel's USB gadget subsystem that can lead to null pointer dereference and system instability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to system crashes, undefined behavior, and potential security risks due to the instability of the USB gadget functionalities.

Yes, a patch is available. Users should update their Linux kernel package to the latest version that includes the fix for CVE-2025-38448.

If you cannot apply the patch immediately, consider disabling the affected USB gadget functionalities as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for linux.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback