# CVE-2025-38268: usb: typec: tcpm: move tcpm\_queue\_vdm\_unlocked to asynchronous work

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-07-10T07:41:51.217Z
- **Modified:** 2026-11-05T21:18:23.863Z

## Who should check

- Anyone running Linux \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 7bdd712abefbec79176ab412d8c623e755c5d0ba; \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 1970d34b48cbeceb0c765984c9a6bb204c77f16a; \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 324d45e53f1a36c88bc649dc39e0c8300a41be0a
- Anyone running Linux 6.9

## Description

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

usb: typec: tcpm: move tcpm\_queue\_vdm\_unlocked to asynchronous work

A state check was previously added to tcpm\_queue\_vdm\_unlocked to
prevent a deadlock where the DisplayPort Alt Mode driver would be
executing work and attempting to grab the tcpm\_lock while the TCPM
was holding the lock and attempting to unregister the altmode, blocking
on the altmode driver's cancel\_work\_sync call.

Because the state check isn't protected, there is a small window
where the Alt Mode driver could determine that the TCPM is
in a ready state and attempt to grab the lock while the
TCPM grabs the lock and changes the TCPM state to one that
causes the deadlock. The callstack is provided below:

\[110121.667392\]\[    C7\] Call trace:
\[110121.667396\]\[    C7\]  \_\_switch\_to+0x174/0x338
\[110121.667406\]\[    C7\]  \_\_schedule+0x608/0x9f0
\[110121.667414\]\[    C7\]  schedule+0x7c/0xe8
\[110121.667423\]\[    C7\]  kernfs\_drain+0xb0/0x114
\[110121.667431\]\[    C7\]  \_\_kernfs\_remove+0x16c/0x20c
\[110121.667436\]\[    C7\]  kernfs\_remove\_by\_name\_ns+0x74/0xe8
\[110121.667442\]\[    C7\]  sysfs\_remove\_group+0x84/0xe8
\[110121.667450\]\[    C7\]  sysfs\_remove\_groups+0x34/0x58
\[110121.667458\]\[    C7\]  device\_remove\_groups+0x10/0x20
\[110121.667464\]\[    C7\]  device\_release\_driver\_internal+0x164/0x2e4
\[110121.667475\]\[    C7\]  device\_release\_driver+0x18/0x28
\[110121.667484\]\[    C7\]  bus\_remove\_device+0xec/0x118
\[110121.667491\]\[    C7\]  device\_del+0x1e8/0x4ac
\[110121.667498\]\[    C7\]  device\_unregister+0x18/0x38
\[110121.667504\]\[    C7\]  typec\_unregister\_altmode+0x30/0x44
\[110121.667515\]\[    C7\]  tcpm\_reset\_port+0xac/0x370
\[110121.667523\]\[    C7\]  tcpm\_snk\_detach+0x84/0xb8
\[110121.667529\]\[    C7\]  run\_state\_machine+0x4c0/0x1b68
\[110121.667536\]\[    C7\]  tcpm\_state\_machine\_work+0x94/0xe4
\[110121.667544\]\[    C7\]  kthread\_worker\_fn+0x10c/0x244
\[110121.667552\]\[    C7\]  kthread+0x104/0x1d4
\[110121.667557\]\[    C7\]  ret\_from\_fork+0x10/0x20

\[110121.667689\]\[    C7\] Workqueue: events dp\_altmode\_work
\[110121.667697\]\[    C7\] Call trace:
\[110121.667701\]\[    C7\]  \_\_switch\_to+0x174/0x338
\[110121.667710\]\[    C7\]  \_\_schedule+0x608/0x9f0
\[110121.667717\]\[    C7\]  schedule+0x7c/0xe8
\[110121.667725\]\[    C7\]  schedule\_preempt\_disabled+0x24/0x40
\[110121.667733\]\[    C7\]  \_\_mutex\_lock+0x408/0xdac
\[110121.667741\]\[    C7\]  \_\_mutex\_lock\_slowpath+0x14/0x24
\[110121.667748\]\[    C7\]  mutex\_lock+0x40/0xec
\[110121.667757\]\[    C7\]  tcpm\_altmode\_enter+0x78/0xb4
\[110121.667764\]\[    C7\]  typec\_altmode\_enter+0xdc/0x10c
\[110121.667769\]\[    C7\]  dp\_altmode\_work+0x68/0x164
\[110121.667775\]\[    C7\]  process\_one\_work+0x1e4/0x43c
\[110121.667783\]\[    C7\]  worker\_thread+0x25c/0x430
\[110121.667789\]\[    C7\]  kthread+0x104/0x1d4
\[110121.667794\]\[    C7\]  ret\_from\_fork+0x10/0x20

Change tcpm\_queue\_vdm\_unlocked to queue for tcpm\_queue\_vdm\_work,
which can perform the state check while holding the TCPM lock
while the Alt Mode lock is no longer held. This requires a new
struct to hold the vdm data, altmode\_vdm\_event.

## Affected and fixed versions

- Linux: \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 7bdd712abefbec79176ab412d8c623e755c5d0ba; \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 1970d34b48cbeceb0c765984c9a6bb204c77f16a; \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 324d45e53f1a36c88bc649dc39e0c8300a41be0a (cvelist)
- Linux: 6.9 (cvelist)

## Mitigation

- Upgrade Linux to 324d45e53f1a36c88bc649dc39e0c8300a41be0a 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-38268. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38268.md
Affected: Linux >= cdc9946ea6377e8e214b135ccc308c5e514ba25f, < 7bdd712abefbec79176ab412d8c623e755c5d0ba; >= cdc9946ea6377e8e214b135ccc308c5e514ba25f, < 1970d34b48cbeceb0c765984c9a6bb204c77f16a; >= cdc9946ea6377e8e214b135ccc308c5e514ba25f, < 324d45e53f1a36c88bc649dc39e0c8300a41be0a; Linux 6.9
Fixed in: Linux 7bdd712abefbec79176ab412d8c623e755c5d0ba, Linux 1970d34b48cbeceb0c765984c9a6bb204c77f16a, Linux 324d45e53f1a36c88bc649dc39e0c8300a41be0a

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-38268 being exploited?

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 7bdd712abefbec79176ab412d8c623e755c5d0ba; \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 1970d34b48cbeceb0c765984c9a6bb204c77f16a; \>= cdc9946ea6377e8e214b135ccc308c5e514ba25f, \< 324d45e53f1a36c88bc649dc39e0c8300a41be0a; Linux 6.9.

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

Yes. Fixed in Linux 7bdd712abefbec79176ab412d8c623e755c5d0ba, Linux 1970d34b48cbeceb0c765984c9a6bb204c77f16a, Linux 324d45e53f1a36c88bc649dc39e0c8300a41be0a. Upgrade Linux to 324d45e53f1a36c88bc649dc39e0c8300a41be0a or later.

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

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

- patch: <https://git.kernel.org/stable/c/7bdd712abefbec79176ab412d8c623e755c5d0ba>
- patch: <https://git.kernel.org/stable/c/1970d34b48cbeceb0c765984c9a6bb204c77f16a>
- patch: <https://git.kernel.org/stable/c/324d45e53f1a36c88bc649dc39e0c8300a41be0a>

## 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-38268>

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