# CVE-2025-39711: media: ivsc: Fix crash at shutdown due to missing mei\_cldev\_disable() calls

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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 10, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-05T17:21:18.348Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 639f5b33fcd7c59157f29b09f6f2866eacf9279c; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 1dfe73394dcfc9b049c8da0dc181c45f156a5f49; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 0c92c49fc688cfadacc47ae99b06a31237702e9e
- Anyone running Linux 6.6

## Description

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

media: ivsc: Fix crash at shutdown due to missing mei\_cldev\_disable() calls

Both the ACE and CSI driver are missing a mei\_cldev\_disable() call in
their remove() function.

This causes the mei\_cl client to stay part of the mei\_device-\>file\_list
list even though its memory is freed by mei\_cl\_bus\_dev\_release() calling
kfree(cldev-\>cl).

This leads to a use-after-free when mei\_vsc\_remove() runs mei\_stop()
which first removes all mei bus devices calling mei\_ace\_remove() and
mei\_csi\_remove() followed by mei\_cl\_bus\_dev\_release() and then calls
mei\_cl\_all\_disconnect() which walks over mei\_device-\>file\_list dereferecing
the just freed cldev-\>cl.

And mei\_vsc\_remove() it self is run at shutdown because of the
platform\_device\_unregister(tp-\>pdev) in vsc\_tp\_shutdown()

When building a kernel with KASAN this leads to the following KASAN report:

\[ 106.634504\] ==================================================================
\[ 106.634623\] BUG: KASAN: slab-use-after-free in mei\_cl\_set\_disconnected (drivers/misc/mei/client.c:783) mei
\[ 106.634683\] Read of size 4 at addr ffff88819cb62018 by task systemd-shutdow/1
\[ 106.634729\]
\[ 106.634767\] Tainted: \[E\]=UNSIGNED\_MODULE
\[ 106.634770\] Hardware name: Dell Inc. XPS 16 9640/09CK4V, BIOS 1.12.0 02/10/2025
\[ 106.634773\] Call Trace:
\[ 106.634777\]  \<TASK\>
...
\[ 106.634871\] kasan\_report (mm/kasan/report.c:221 mm/kasan/report.c:636)
\[ 106.634901\] mei\_cl\_set\_disconnected (drivers/misc/mei/client.c:783) mei
\[ 106.634921\] mei\_cl\_all\_disconnect (drivers/misc/mei/client.c:2165 (discriminator 4)) mei
\[ 106.634941\] mei\_reset (drivers/misc/mei/init.c:163) mei
...
\[ 106.635042\] mei\_stop (drivers/misc/mei/init.c:348) mei
\[ 106.635062\] mei\_vsc\_remove (drivers/misc/mei/mei\_dev.h:784 drivers/misc/mei/platform-vsc.c:393) mei\_vsc
\[ 106.635066\] platform\_remove (drivers/base/platform.c:1424)

Add the missing mei\_cldev\_disable() calls so that the mei\_cl gets removed
from mei\_device-\>file\_list before it is freed to fix this.

## Affected and fixed versions

- Linux: \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 639f5b33fcd7c59157f29b09f6f2866eacf9279c; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 1dfe73394dcfc9b049c8da0dc181c45f156a5f49; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 0c92c49fc688cfadacc47ae99b06a31237702e9e (cvelist)
- Linux: 6.6 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-39711.md
Affected: Linux >= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, < 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888; >= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, < 639f5b33fcd7c59157f29b09f6f2866eacf9279c; >= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, < 1dfe73394dcfc9b049c8da0dc181c45f156a5f49; >= 29006e196a5661d9afc8152…
Fixed in: Linux 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888, Linux 639f5b33fcd7c59157f29b09f6f2866eacf9279c, Linux 1dfe73394dcfc9b049c8da0dc181c45f156a5f49, Linux 0c92c49fc688cfadacc47ae99b06a31237702e9e

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

There is no confirmed exploitation: CVE-2025-39711 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-39711?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 639f5b33fcd7c59157f29b09f6f2866eacf9279c; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 1dfe73394dcfc9b049c8da0dc181c45f156a5f49; \>= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \< 0c92c49fc688cfadacc47ae99b06a31237702e9e; Linux 6.6.

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

Yes. Fixed in Linux 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888, Linux 639f5b33fcd7c59157f29b09f6f2866eacf9279c, Linux 1dfe73394dcfc9b049c8da0dc181c45f156a5f49, Linux 0c92c49fc688cfadacc47ae99b06a31237702e9e. Upgrade Linux to 0c92c49fc688cfadacc47ae99b06a31237702e9e or later.

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

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/3c0e4cc4f55f9a1db2a761e4ffb27c9594245888>
- patch: <https://git.kernel.org/stable/c/639f5b33fcd7c59157f29b09f6f2866eacf9279c>
- patch: <https://git.kernel.org/stable/c/1dfe73394dcfc9b049c8da0dc181c45f156a5f49>
- patch: <https://git.kernel.org/stable/c/0c92c49fc688cfadacc47ae99b06a31237702e9e>

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

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