CVE-2026-64329: usb: typec: ucsi: ccg: Fix use-after-free of ucsi on remove

Published Jul 25, 2026
·
Updated

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

usb: typec: ucsi: ccg: Fix use-after-free of ucsi on remove

The threaded IRQ handler ccgirqhandler() calls ucsinotifycommon(), which on a connector-change event calls ucsiconnectorchange() and schedules connector work. In ucsiccgremove(), ucsidestroy() frees uc->ucsi (kfree) before freeirq() is called, so a handler invocation already in flight may access the freed object after ucsidestroy().

CPU 0 (remove) | CPU 1 (threaded IRQ) ucsidestroy(uc->ucsi) | ccgirqhandler() kfree(ucsi) // FREE | ucsinotifycommon(uc->ucsi) // USE

Move freeirq() before ucsidestroy() in the remove path. It is kept after ucsiunregister(): ucsiunregister() cancels connector work whose handler issues GETCONNECTORSTATUS through ucsisendcommandcommon(), which waits for a completion that is signalled from the IRQ handler, so the IRQ must stay active until that work has been cancelled.

The probe error path already orders freeirq() before ucsidestroy().

This bug was found by static analysis.

Affected Software

10 affected components
Linux Linux kernel
Linux Linux kernel>=5.5<5.10.261
Linux Linux kernel>=5.11<5.15.212
Linux Linux kernel>=5.16<6.1.178
Linux Linux kernel>=6.2<6.6.145
Linux Linux kernel>=6.7<6.12.96
Linux Linux kernel>=6.13<6.18.39
Linux Linux kernel>=6.19<7.1.4
Linux Linux kernel=7.2-rc1
Linux Linux kernel=7.2-rc2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In the Linux kernel UCSI UCSI CCG remove path, ensure the threaded IRQ remains active until all in-flight connector work scheduled via ucsi_notify_common() is cancelled. Specifically, move free_irq() before ucsi_destroy() so that ccg_irq_handler() cannot run after the ucsi object has been freed (ucsi_destroy/ucsi_unregister).

Event History

Jul 25, 2026
CVE Published
via MITRE·08:49 AM
Data Sourced
via MITRE·08:49 AM
Description
Data Sourced
via NVD·10:17 AM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What systems are exposed to this issue?

Systems using the Linux kernel CCG UCSI USB Type-C driver are exposed during device removal if a threaded IRQ handler is still in flight. The affected path involves connector-change handling and UCSI connector work.

2

What level of access does exploitation require?

The CVSS vector rates the issue as locally exploitable with low privileges and no user interaction. It assigns high confidentiality, integrity, and availability impact.

3

What is the required fix in the driver removal path?

The IRQ must be freed before the UCSI object is destroyed, preventing an in-flight threaded handler from accessing freed memory. The IRQ should remain active until after ucsi_unregister(), because unregistering cancels work that may require IRQ-delivered command completion.

4

How can maintainers identify the vulnerable code ordering?

Inspect the CCG UCSI remove path for ucsi_destroy() being called before free_irq(). The safe ordering is free_irq() before ucsi_destroy(), while retaining free_irq() after ucsi_unregister().

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