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

CVE-2026-64329
HIGH 7.8

En bref

Source
NVD
EPSS
EPSS 0.13 % · centile 2 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Analyzed

Description

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 ccg_irq_handler() calls ucsi_notify_common(), which on a connector-change event calls ucsi_connector_change() and schedules connector work. In ucsi_ccg_remove(), ucsi_destroy() frees uc->ucsi (kfree) before free_irq() is called, so a handler invocation already in flight may access the freed object after ucsi_destroy(). CPU 0 (remove) | CPU 1 (threaded IRQ) ucsi_destroy(uc->ucsi) | ccg_irq_handler() kfree(ucsi) // FREE | ucsi_notify_common(uc->ucsi) // USE Move free_irq() before ucsi_destroy() in the remove path. It is kept after ucsi_unregister(): ucsi_unregister() cancels connector work whose handler issues GET_CONNECTOR_STATUS through ucsi_send_command_common(), 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 free_irq() before ucsi_destroy(). This bug was found by static analysis.

Faiblesses (CWE)

  • CWE-416 — Utilisation après libération

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 < f1adeb1ff8bef1467d6961059810795d02bbad5d ; affected e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 < 99381e762273a2410a3f0216000be32b013c0ea9 ; affected e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 < 1a160076d3d0dcd4a98a4599ad96eec0790b099b ; affected e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 < c32df11147822d22facee8fa30c2e8971d12f426 ; affected e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 < 86c9ee928c4a370e323e432aaf8dca79c4ba7c85 ; affected e32fd989ac1c45f993fbe89ad0a89aa9ea6993d2 < f5c772b76bbd95de8be51cf849c6098f6af6fcf9
Linux · Linuxaffected 5.5 ; unaffected 0 < 5.5 ; unaffected 5.10.261 ≤ 5.10.* ; unaffected 5.15.212 ≤ 5.15.* ; unaffected 6.1.178 ≤ 6.1.* ; unaffected 6.6.145 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD