# CVE-2025-68323: usb: typec: ucsi: fix use-after-free caused by uec-\>work

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 15, 2026-11-26)
- **Published:** 2025-12-18T15:02:48.403Z
- **Modified:** 2026-06-17T09:58:56.040Z

## Who should check

- Anyone running Linux \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< d8ac85c76a4279979b917d4b2f9c6b07d9783003; \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< a880ef71a1c8da266b88491213c37893e2126489; \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< 2b7a0f47aaf2439d517ba0a6b29c66a535302154
- Anyone running Linux 6.16

## Description

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

usb: typec: ucsi: fix use-after-free caused by uec-\>work

The delayed work uec-\>work is scheduled in gaokun\_ucsi\_probe()
but never properly canceled in gaokun\_ucsi\_remove(). This creates
use-after-free scenarios where the ucsi and gaokun\_ucsi structure
are freed after ucsi\_destroy() completes execution, while the
gaokun\_ucsi\_register\_worker() might be either currently executing
or still pending in the work queue. The already-freed gaokun\_ucsi
or ucsi structure may then be accessed.

Furthermore, the race window is 3 seconds, which is sufficiently
long to make this bug easily reproducible. The following is the
trace captured by KASAN:

==================================================================
BUG: KASAN: slab-use-after-free in \_\_run\_timers+0x5ec/0x630
Write of size 8 at addr ffff00000ec28cc8 by task swapper/0/0
...
Call trace:
 show\_stack+0x18/0x24 (C)
 dump\_stack\_lvl+0x78/0x90
 print\_report+0x114/0x580
 kasan\_report+0xa4/0xf0
 \_\_asan\_report\_store8\_noabort+0x20/0x2c
 \_\_run\_timers+0x5ec/0x630
 run\_timer\_softirq+0xe8/0x1cc
 handle\_softirqs+0x294/0x720
 \_\_do\_softirq+0x14/0x20
 \_\_\_\_do\_softirq+0x10/0x1c
 call\_on\_irq\_stack+0x30/0x48
 do\_softirq\_own\_stack+0x1c/0x28
 \_\_irq\_exit\_rcu+0x27c/0x364
 irq\_exit\_rcu+0x10/0x1c
 el1\_interrupt+0x40/0x60
 el1h\_64\_irq\_handler+0x18/0x24
 el1h\_64\_irq+0x6c/0x70
 arch\_local\_irq\_enable+0x4/0x8 (P)
 do\_idle+0x334/0x458
 cpu\_startup\_entry+0x60/0x70
 rest\_init+0x158/0x174
 start\_kernel+0x2f8/0x394
 \_\_primary\_switched+0x8c/0x94

Allocated by task 72 on cpu 0 at 27.510341s:
 kasan\_save\_stack+0x2c/0x54
 kasan\_save\_track+0x24/0x5c
 kasan\_save\_alloc\_info+0x40/0x54
 \_\_kasan\_kmalloc+0xa0/0xb8
 \_\_kmalloc\_node\_track\_caller\_noprof+0x1c0/0x588
 devm\_kmalloc+0x7c/0x1c8
 gaokun\_ucsi\_probe+0xa0/0x840  auxiliary\_bus\_probe+0x94/0xf8
 really\_probe+0x17c/0x5b8
 \_\_driver\_probe\_device+0x158/0x2c4
 driver\_probe\_device+0x10c/0x264
 \_\_device\_attach\_driver+0x168/0x2d0
 bus\_for\_each\_drv+0x100/0x188
 \_\_device\_attach+0x174/0x368
 device\_initial\_probe+0x14/0x20
 bus\_probe\_device+0x120/0x150
 device\_add+0xb3c/0x10fc
 \_\_auxiliary\_device\_add+0x88/0x130
...

Freed by task 73 on cpu 1 at 28.910627s:
 kasan\_save\_stack+0x2c/0x54
 kasan\_save\_track+0x24/0x5c
 \_\_kasan\_save\_free\_info+0x4c/0x74
 \_\_kasan\_slab\_free+0x60/0x8c
 kfree+0xd4/0x410
 devres\_release\_all+0x140/0x1f0
 device\_unbind\_cleanup+0x20/0x190
 device\_release\_driver\_internal+0x344/0x460
 device\_release\_driver+0x18/0x24
 bus\_remove\_device+0x198/0x274
 device\_del+0x310/0xa84
...

The buggy address belongs to the object at ffff00000ec28c00
 which belongs to the cache kmalloc-512 of size 512
The buggy address is located 200 bytes inside of
 freed 512-byte region
The buggy address belongs to the physical page:
page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x4ec28
head: order:2 mapcount:0 entire\_mapcount:0 nr\_pages\_mapped:0 pincount:0
flags: 0x3fffe0000000040(head\|node=0\|zone=0\|lastcpupid=0x1ffff)
page\_type: f5(slab)
raw: 03fffe0000000040 ffff000008801c80 dead000000000122 0000000000000000
raw: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
head: 03fffe0000000040 ffff000008801c80 dead000000000122 0000000000000000
head: 0000000000000000 0000000080100010 00000000f5000000 0000000000000000
head: 03fffe0000000002 fffffdffc03b0a01 00000000ffffffff 00000000ffffffff
head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000004
page dumped because: kasan: bad access detected

Memory state around the buggy address:
 ffff00000ec28b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc
 ffff00000ec28c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
\>ffff00000ec28c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
                                              ^
 ffff00000ec28d00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
 ffff00000ec28d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb
================================================================
---truncated---

## Affected and fixed versions

- Linux: \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< d8ac85c76a4279979b917d4b2f9c6b07d9783003; \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< a880ef71a1c8da266b88491213c37893e2126489; \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< 2b7a0f47aaf2439d517ba0a6b29c66a535302154 (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 2b7a0f47aaf2439d517ba0a6b29c66a535302154 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-68323. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-68323.md
Affected: Linux >= 00327d7f2c8c512c9b168daae02c8b989f79ec71, < d8ac85c76a4279979b917d4b2f9c6b07d9783003; >= 00327d7f2c8c512c9b168daae02c8b989f79ec71, < a880ef71a1c8da266b88491213c37893e2126489; >= 00327d7f2c8c512c9b168daae02c8b989f79ec71, < 2b7a0f47aaf2439d517ba0a6b29c66a535302154; Linux 6.16
Fixed in: Linux 2b7a0f47aaf2439d517ba0a6b29c66a535302154

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-68323 being exploited?

There is no confirmed exploitation: CVE-2025-68323 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-68323?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2025-68323?

Linux \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< d8ac85c76a4279979b917d4b2f9c6b07d9783003; \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< a880ef71a1c8da266b88491213c37893e2126489; \>= 00327d7f2c8c512c9b168daae02c8b989f79ec71, \< 2b7a0f47aaf2439d517ba0a6b29c66a535302154; Linux 6.16.

### Is there a fix for CVE-2025-68323?

Yes. Fixed in Linux 2b7a0f47aaf2439d517ba0a6b29c66a535302154. Upgrade Linux to 2b7a0f47aaf2439d517ba0a6b29c66a535302154 or later.

### How do I check if I'm affected by CVE-2025-68323?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/d8ac85c76a4279979b917d4b2f9c6b07d9783003>
- other: <https://git.kernel.org/stable/c/a880ef71a1c8da266b88491213c37893e2126489>
- other: <https://git.kernel.org/stable/c/2b7a0f47aaf2439d517ba0a6b29c66a535302154>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-68323>

HTML: <https://flawdb.com/CVE-2025-68323> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-68323>
