{"id":"CVE-2026-74441","published":"2026-08-15T12:26:49Z","modified":"2026-08-23T12:47:17Z","title":"usb: typec: ucsi: Fix race condition and ordering in port unregistration","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: Fix race condition and ordering in port unregistration\n\nA synchronization issue exists during port unregistration where pending\npartner work items can race against workqueue destruction, leading to\nuse-after-free conditions:\n\n  cros_ec_ucsi cros_ec_ucsi.3.auto: error -ETIMEDOUT: PPM init failed\n  BUG: kernel NULL pointer dereference, address: 0000000000000000\n  RIP: 0010:__queue_work+0x83/0x4a0\n  Call Trace:\n    <IRQ>\n    __cfi_delayed_work_timer_fn+0x10/0x10\n    run_timer_softirq+0x3b6/0xbd0\n    sched_clock_cpu+0xc/0x110\n    irq_exit_rcu+0x18d/0x330\n    fred_sysvec_apic_timer_interrupt+0x5e/0x80\n\nFix this by ensuring strict ordering and proper serialization during\nteardown:\n\n1. Move ucsi_unregister_partner() to the beginning of the teardown\nsequence and protect it under the connector mutex lock.\n2. Ensure all pending partner tasks are explicitly flushed and finished\nbefore the workqueue is destroyed.\n3. Switch from mod_delayed_work() to a cancel_delayed_work() and\nqueue_delayed_work() sequence. This guarantees that items currently marked\nas pending won't be scheduled an additional time, preventing a double\nrelease of resources which leads to the following crash:\n\n  Oops: general protection fault, probably for non-canonical address\n    0xdead000000000122: 0000 [#1] SMP NOPTI\n  Workqueue: cros_ec_ucsi.3.auto-con2 ucsi_poll_worker\n  RIP: 0010:ucsi_poll_worker+0x65/0x1e0\n  Call Trace:\n  <TASK>\n    process_scheduled_works+0x218/0x6d0\n    worker_thread+0x188/0x3f0\n    __cfi_worker_thread+0x10/0x10\n    kthread+0x226/0x2a0\n\nTo ensure these rules are applied identically across both the normal\nteardown and the ucsi_init() error paths, consolidate the cleanup logic\ninto a new helper, ucsi_unregister_port().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00215,"percentile":0.068,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/7b63c680ff605f60f056e5f2c323f1a602aee182","tags":[]},{"url":"https://git.kernel.org/stable/c/07f8aaffee705e552c1f723ac8bf7eb137ad59c2","tags":[]},{"url":"https://git.kernel.org/stable/c/11483d80267db97fbe49f2df66385434256cc3b0","tags":[]},{"url":"https://git.kernel.org/stable/c/3f7b3728dd9011c915cbeaea77274ebe8366550d","tags":[]},{"url":"https://git.kernel.org/stable/c/bc7a0f721123ea260a42f1ded06dab844ba49434","tags":[]},{"url":"https://git.kernel.org/stable/c/7aa7d4bf9d3fa9a6a47b640ad103ab433b7ff261","tags":[]}],"priority":{"score":1.4,"factors":[{"name":"EPSS percentile","points":1.36}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= b9aa02ca39a49740926c2c450a1505a4a0f8954a, < 7b63c680ff605f60f056e5f2c323f1a602aee182",">= b9aa02ca39a49740926c2c450a1505a4a0f8954a, < 07f8aaffee705e552c1f723ac8bf7eb137ad59c2",">= b9aa02ca39a49740926c2c450a1505a4a0f8954a, < 11483d80267db97fbe49f2df66385434256cc3b0",">= b9aa02ca39a49740926c2c450a1505a4a0f8954a, < 3f7b3728dd9011c915cbeaea77274ebe8366550d",">= b9aa02ca39a49740926c2c450a1505a4a0f8954a, < bc7a0f721123ea260a42f1ded06dab844ba49434",">= b9aa02ca39a49740926c2c450a1505a4a0f8954a, < 7aa7d4bf9d3fa9a6a47b640ad103ab433b7ff261"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"euvd":{"id":"EUVD-2026-59748","exploited":false,"provenance":"source"}}