# CVE-2025-38392: idpf: convert control queue mutex to a spinlock

> 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.26% (percentile 11, 2026-11-26)
- **Published:** 2025-07-25T12:53:37.175Z
- **Modified:** 2026-11-05T21:18:30.050Z

## Who should check

- Anyone running Linux \>= a251eee62133774cf35ff829041377e721ef9c8c, \< 9a36715cd6bc6a6f16230e19a7f947bab34b3fe5; \>= a251eee62133774cf35ff829041377e721ef9c8c, \< dc6c3c2c9dfdaa3a3357f59a80a2904677a71a9a; \>= a251eee62133774cf35ff829041377e721ef9c8c, \< b2beb5bb2cd90d7939e470ed4da468683f41baa3
- Anyone running Linux 6.7

## Description

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

idpf: convert control queue mutex to a spinlock

With VIRTCHNL2\_CAP\_MACFILTER enabled, the following warning is generated
on module load:

\[  324.701677\] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:578
\[  324.701684\] in\_atomic(): 1, irqs\_disabled(): 0, non\_block: 0, pid: 1582, name: NetworkManager
\[  324.701689\] preempt\_count: 201, expected: 0
\[  324.701693\] RCU nest depth: 0, expected: 0
\[  324.701697\] 2 locks held by NetworkManager/1582:
\[  324.701702\]  \#0: ffffffff9f7be770 (rtnl\_mutex){....}-{3:3}, at: rtnl\_newlink+0x791/0x21e0
\[  324.701730\]  \#1: ff1100216c380368 (\_xmit\_ETHER){....}-{2:2}, at: \_\_dev\_open+0x3f0/0x870
\[  324.701749\] Preemption disabled at:
\[  324.701752\] \[\<ffffffff9cd23b9d\>\] \_\_dev\_open+0x3dd/0x870
\[  324.701765\] CPU: 30 UID: 0 PID: 1582 Comm: NetworkManager Not tainted 6.15.0-rc5+ \#2 PREEMPT(voluntary)
\[  324.701771\] Hardware name: Intel Corporation M50FCP2SBSTD/M50FCP2SBSTD, BIOS SE5C741.86B.01.01.0001.2211140926 11/14/2022
\[  324.701774\] Call Trace:
\[  324.701777\]  \<TASK\>
\[  324.701779\]  dump\_stack\_lvl+0x5d/0x80
\[  324.701788\]  ? \_\_dev\_open+0x3dd/0x870
\[  324.701793\]  \_\_might\_resched.cold+0x1ef/0x23d
\<..\>
\[  324.701818\]  \_\_mutex\_lock+0x113/0x1b80
\<..\>
\[  324.701917\]  idpf\_ctlq\_clean\_sq+0xad/0x4b0 \[idpf\]
\[  324.701935\]  ? kasan\_save\_track+0x14/0x30
\[  324.701941\]  idpf\_mb\_clean+0x143/0x380 \[idpf\]
\<..\>
\[  324.701991\]  idpf\_send\_mb\_msg+0x111/0x720 \[idpf\]
\[  324.702009\]  idpf\_vc\_xn\_exec+0x4cc/0x990 \[idpf\]
\[  324.702021\]  ? rcu\_is\_watching+0x12/0xc0
\[  324.702035\]  idpf\_add\_del\_mac\_filters+0x3ed/0xb50 \[idpf\]
\<..\>
\[  324.702122\]  \_\_hw\_addr\_sync\_dev+0x1cf/0x300
\[  324.702126\]  ? find\_held\_lock+0x32/0x90
\[  324.702134\]  idpf\_set\_rx\_mode+0x317/0x390 \[idpf\]
\[  324.702152\]  \_\_dev\_open+0x3f8/0x870
\[  324.702159\]  ? \_\_pfx\_\_\_dev\_open+0x10/0x10
\[  324.702174\]  \_\_dev\_change\_flags+0x443/0x650
\<..\>
\[  324.702208\]  netif\_change\_flags+0x80/0x160
\[  324.702218\]  do\_setlink.isra.0+0x16a0/0x3960
\<..\>
\[  324.702349\]  rtnl\_newlink+0x12fd/0x21e0

The sequence is as follows:
	rtnl\_newlink()-\>
	\_\_dev\_change\_flags()-\>
	\_\_dev\_open()-\>
	dev\_set\_rx\_mode() - \>  \# disables BH and grabs "dev-\>addr\_list\_lock"
	idpf\_set\_rx\_mode() -\>  \# proceed only if VIRTCHNL2\_CAP\_MACFILTER is ON
	\_\_dev\_uc\_sync() -\>
	idpf\_add\_mac\_filter -\>
	idpf\_add\_del\_mac\_filters -\>
	idpf\_send\_mb\_msg() -\>
	idpf\_mb\_clean() -\>
	idpf\_ctlq\_clean\_sq()   \# mutex\_lock(cq\_lock)

Fix by converting cq\_lock to a spinlock. All operations under the new
lock are safe except freeing the DMA memory, which may use vunmap(). Fix
by requesting a contiguous physical memory for the DMA mapping.

## Affected and fixed versions

- Linux: \>= a251eee62133774cf35ff829041377e721ef9c8c, \< 9a36715cd6bc6a6f16230e19a7f947bab34b3fe5; \>= a251eee62133774cf35ff829041377e721ef9c8c, \< dc6c3c2c9dfdaa3a3357f59a80a2904677a71a9a; \>= a251eee62133774cf35ff829041377e721ef9c8c, \< b2beb5bb2cd90d7939e470ed4da468683f41baa3 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-38392.md
Affected: Linux >= a251eee62133774cf35ff829041377e721ef9c8c, < 9a36715cd6bc6a6f16230e19a7f947bab34b3fe5; >= a251eee62133774cf35ff829041377e721ef9c8c, < dc6c3c2c9dfdaa3a3357f59a80a2904677a71a9a; >= a251eee62133774cf35ff829041377e721ef9c8c, < b2beb5bb2cd90d7939e470ed4da468683f41baa3; Linux 6.7
Fixed in: Linux 9a36715cd6bc6a6f16230e19a7f947bab34b3fe5

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

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

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

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

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

Linux \>= a251eee62133774cf35ff829041377e721ef9c8c, \< 9a36715cd6bc6a6f16230e19a7f947bab34b3fe5; \>= a251eee62133774cf35ff829041377e721ef9c8c, \< dc6c3c2c9dfdaa3a3357f59a80a2904677a71a9a; \>= a251eee62133774cf35ff829041377e721ef9c8c, \< b2beb5bb2cd90d7939e470ed4da468683f41baa3; Linux 6.7.

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

Yes. Fixed in Linux 9a36715cd6bc6a6f16230e19a7f947bab34b3fe5. No fix listed yet: follow the vendor advisory.

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

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/9a36715cd6bc6a6f16230e19a7f947bab34b3fe5>
- patch: <https://git.kernel.org/stable/c/dc6c3c2c9dfdaa3a3357f59a80a2904677a71a9a>
- patch: <https://git.kernel.org/stable/c/b2beb5bb2cd90d7939e470ed4da468683f41baa3>

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

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