CVE-2025-68781: usb: phy: fsl-usb: Fix use-after-free in delayed work during device removal

Published Jan 13, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: phy: fsl-usb: Fix use-after-free in delayed work during device removal

The delayed work item otgevent is initialized in fslotgconf() and scheduled under two conditions: 1. When a host controller binds to the OTG controller. 2. When the USB ID pin state changes (cable insertion/removal).

A race condition occurs when the device is removed via fslotgremove(): the fslotg instance may be freed while the delayed work is still pending or executing. This leads to use-after-free when the work function fslotgevent() accesses the already freed memory.

The problematic scenario:

(detach thread) | (delayed work) fslotgremove() | kfree(fslotgdev) //FREE| fslotgevent() | og = containerof(...) //USE | og-> //USE

Fix this by calling disabledelayedworksync() in fslotgremove() before deallocating the fslotg structure. This ensures the delayed work is properly canceled and completes execution prior to memory deallocation.

This bug was identified through static analysis.

Affected Software

1 affected component
linux-kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In the fsl-usb driver, fix the use-after-free by calling disable_delayed_work_sync() from fsl_otg_remove() to ensure otg_event delayed work is canceled and completes execution before any kfree(fsl_otg_dev) / memory deallocation.

    Linux kernel (USB: phy: fsl-usb) disable delayed work (otg_event) during device removal in fsl_otg_remove() = Call disable_delayed_work_sync() in fsl_otg_remove() before deallocating fsl_otg structure

Event History

Jan 13, 2026
CVE Published
via MITRE·03:28 PM
Data Sourced
via MITRE·03:28 PM
Description
Data Sourced
via NVD·04:15 PM
Description
Jan 15, 2026
Data Sourced
via Microsoft·09:01 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-68781?

CVE-2025-68781 has been classified as a medium severity vulnerability due to a use-after-free issue in the Linux kernel.

2

How do I fix CVE-2025-68781?

To fix CVE-2025-68781, update your Linux kernel to the latest stable release where this vulnerability has been patched.

3

What systems are affected by CVE-2025-68781?

CVE-2025-68781 affects Linux kernel implementations that utilize the fsl-usb phy driver.

4

What is the main impact of CVE-2025-68781?

The main impact of CVE-2025-68781 is the potential for a denial of service or unexpected behavior due to the use-after-free vulnerability.

5

Are there any workarounds for CVE-2025-68781?

Currently, the best approach for CVE-2025-68781 is to apply the kernel update as there are no known effective workarounds.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203