{
  "id": "CVE-2025-39711",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39711",
  "published_at": "2025-09-05T17:21:18.348Z",
  "title": "media: ivsc: Fix crash at shutdown due to missing mei_cldev_disable() calls",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: ivsc: Fix crash at shutdown due to missing mei_cldev_disable() calls\n\nBoth the ACE and CSI driver are missing a mei_cldev_disable() call in\ntheir remove() function.\n\nThis causes the mei_cl client to stay part of the mei_device-\u003efile_list\nlist even though its memory is freed by mei_cl_bus_dev_release() calling\nkfree(cldev-\u003ecl).\n\nThis leads to a use-after-free when mei_vsc_remove() runs mei_stop()\nwhich first removes all mei bus devices calling mei_ace_remove() and\nmei_csi_remove() followed by mei_cl_bus_dev_release() and then calls\nmei_cl_all_disconnect() which walks over mei_device-\u003efile_list dereferecing\nthe just freed cldev-\u003ecl.\n\nAnd mei_vsc_remove() it self is run at shutdown because of the\nplatform_device_unregister(tp-\u003epdev) in vsc_tp_shutdown()\n\nWhen building a kernel with KASAN this leads to the following KASAN report:\n\n[ 106.634504] ==================================================================\n[ 106.634623] BUG: KASAN: slab-use-after-free in mei_cl_set_disconnected (drivers/misc/mei/client.c:783) mei\n[ 106.634683] Read of size 4 at addr ffff88819cb62018 by task systemd-shutdow/1\n[ 106.634729]\n[ 106.634767] Tainted: [E]=UNSIGNED_MODULE\n[ 106.634770] Hardware name: Dell Inc. XPS 16 9640/09CK4V, BIOS 1.12.0 02/10/2025\n[ 106.634773] Call Trace:\n[ 106.634777]  \u003cTASK\u003e\n...\n[ 106.634871] kasan_report (mm/kasan/report.c:221 mm/kasan/report.c:636)\n[ 106.634901] mei_cl_set_disconnected (drivers/misc/mei/client.c:783) mei\n[ 106.634921] mei_cl_all_disconnect (drivers/misc/mei/client.c:2165 (discriminator 4)) mei\n[ 106.634941] mei_reset (drivers/misc/mei/init.c:163) mei\n...\n[ 106.635042] mei_stop (drivers/misc/mei/init.c:348) mei\n[ 106.635062] mei_vsc_remove (drivers/misc/mei/mei_dev.h:784 drivers/misc/mei/platform-vsc.c:393) mei_vsc\n[ 106.635066] platform_remove (drivers/base/platform.c:1424)\n\nAdd the missing mei_cldev_disable() calls so that the mei_cl gets removed\nfrom mei_device-\u003efile_list before it is freed to fix this.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \u003c 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888",
          "\u003e= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \u003c 639f5b33fcd7c59157f29b09f6f2866eacf9279c",
          "\u003e= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \u003c 1dfe73394dcfc9b049c8da0dc181c45f156a5f49",
          "\u003e= 29006e196a5661d9afc8152fa2bf8a5347ac17b4, \u003c 0c92c49fc688cfadacc47ae99b06a31237702e9e"
        ],
        "fixed_in": [
          "3c0e4cc4f55f9a1db2a761e4ffb27c9594245888",
          "639f5b33fcd7c59157f29b09f6f2866eacf9279c",
          "1dfe73394dcfc9b049c8da0dc181c45f156a5f49",
          "0c92c49fc688cfadacc47ae99b06a31237702e9e"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.6"
        ],
        "fixed_in": [
          "0",
          "6.6.103",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 3c0e4cc4f55f9a1db2a761e4ffb27c9594245888 or 639f5b33fcd7c59157f29b09f6f2866eacf9279c or 1dfe73394dcfc9b049c8da0dc181c45f156a5f49 or 0c92c49fc688cfadacc47ae99b06a31237702e9e or later.",
      "Upgrade Linux to 0 or 6.6.103 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
