In the Linux kernel, the following vulnerability has been resolved:
media: ivsc: Fix crash at shutdown due to missing meicldevdisable() calls
Both the ACE and CSI driver are missing a meicldevdisable() call in their remove() function.
This causes the meicl client to stay part of the meidevice->filelist list even though its memory is freed by meiclbusdev_release() calling kfree(cldev->cl).
This leads to a use-after-free when meivscremove() runs meistop() which first removes all mei bus devices calling meiaceremove() and meicsiremove() followed by meiclbusdevrelease() and then calls meiclalldisconnect() which walks over meidevice->filelist dereferecing the just freed cldev->cl.
And meivscremove() it self is run at shutdown because of the platformdeviceunregister(tp->pdev) in vsctpshutdown()
When building a kernel with KASAN this leads to the following KASAN report:
[ 106.634504] ================================================================== [ 106.634623] BUG: KASAN: slab-use-after-free in meiclsetdisconnected (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]=UNSIGNEDMODULE [ 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] kasanreport (mm/kasan/report.c:221 mm/kasan/report.c:636) [ 106.634901] meiclsetdisconnected (drivers/misc/mei/client.c:783) mei [ 106.634921] meiclalldisconnect (drivers/misc/mei/client.c:2165 (discriminator 4)) mei [ 106.634941] meireset (drivers/misc/mei/init.c:163) mei ... [ 106.635042] meistop (drivers/misc/mei/init.c:348) mei [ 106.635062] meivscremove (drivers/misc/mei/meidev.h:784 drivers/misc/mei/platform-vsc.c:393) meivsc [ 106.635066] platformremove (drivers/base/platform.c:1424)
Add the missing meicldevdisable() calls so that the meicl gets removed from meidevice->file_list before it is freed to fix this.
[
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_csi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dfe73394dcfc9b049c8da0dc181c45f156a5f49",
"digest": {
"line_hashes": [
"245068609152675624365485987056592669876",
"33262454064957700881770835732871393537",
"288300694810270861136648605345449380164"
],
"threshold": 0.9
},
"id": "CVE-2025-39711-07346939"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_csi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c0e4cc4f55f9a1db2a761e4ffb27c9594245888",
"digest": {
"line_hashes": [
"245068609152675624365485987056592669876",
"33262454064957700881770835732871393537",
"288300694810270861136648605345449380164"
],
"threshold": 0.9
},
"id": "CVE-2025-39711-3576f4aa"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_ace.c",
"function": "mei_ace_remove"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dfe73394dcfc9b049c8da0dc181c45f156a5f49",
"digest": {
"length": 294.0,
"function_hash": "43344003931327009936434284451879248683"
},
"id": "CVE-2025-39711-39c2d03f"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_csi.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0c92c49fc688cfadacc47ae99b06a31237702e9e",
"digest": {
"line_hashes": [
"245068609152675624365485987056592669876",
"33262454064957700881770835732871393537",
"288300694810270861136648605345449380164"
],
"threshold": 0.9
},
"id": "CVE-2025-39711-43e0bfb8"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_ace.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dfe73394dcfc9b049c8da0dc181c45f156a5f49",
"digest": {
"line_hashes": [
"38025911255314383593760050040394776796",
"21150709121035445844599387761343678340",
"246296168718430594077905574436387328870"
],
"threshold": 0.9
},
"id": "CVE-2025-39711-6a4b20d5"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_ace.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c0e4cc4f55f9a1db2a761e4ffb27c9594245888",
"digest": {
"line_hashes": [
"38025911255314383593760050040394776796",
"21150709121035445844599387761343678340",
"246296168718430594077905574436387328870"
],
"threshold": 0.9
},
"id": "CVE-2025-39711-6b2b8c00"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_ace.c",
"function": "mei_ace_remove"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c0e4cc4f55f9a1db2a761e4ffb27c9594245888",
"digest": {
"length": 294.0,
"function_hash": "43344003931327009936434284451879248683"
},
"id": "CVE-2025-39711-6f6f6eaa"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_csi.c",
"function": "mei_csi_remove"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3c0e4cc4f55f9a1db2a761e4ffb27c9594245888",
"digest": {
"length": 376.0,
"function_hash": "10679274468992777671171679255490964940"
},
"id": "CVE-2025-39711-9e44bbec"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_csi.c",
"function": "mei_csi_remove"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0c92c49fc688cfadacc47ae99b06a31237702e9e",
"digest": {
"length": 376.0,
"function_hash": "10679274468992777671171679255490964940"
},
"id": "CVE-2025-39711-a7db6b65"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_ace.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0c92c49fc688cfadacc47ae99b06a31237702e9e",
"digest": {
"line_hashes": [
"38025911255314383593760050040394776796",
"21150709121035445844599387761343678340",
"246296168718430594077905574436387328870"
],
"threshold": 0.9
},
"id": "CVE-2025-39711-bc47f8bd"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_ace.c",
"function": "mei_ace_remove"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0c92c49fc688cfadacc47ae99b06a31237702e9e",
"digest": {
"length": 294.0,
"function_hash": "43344003931327009936434284451879248683"
},
"id": "CVE-2025-39711-bde7222b"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"target": {
"file": "drivers/media/pci/intel/ivsc/mei_csi.c",
"function": "mei_csi_remove"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1dfe73394dcfc9b049c8da0dc181c45f156a5f49",
"digest": {
"length": 376.0,
"function_hash": "10679274468992777671171679255490964940"
},
"id": "CVE-2025-39711-f8bb9903"
}
]