{"id":"CVE-2025-21928","published":"2025-04-01T15:40:59Z","modified":"2026-05-11T21:09:14Z","title":"HID: intel-ish-hid: Fix use-after-free issue in ishtp_hid_remove()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: intel-ish-hid: Fix use-after-free issue in ishtp_hid_remove()\n\nThe system can experience a random crash a few minutes after the driver is\nremoved. This issue occurs due to improper handling of memory freeing in\nthe ishtp_hid_remove() function.\n\nThe function currently frees the `driver_data` directly within the loop\nthat destroys the HID devices, which can lead to accessing freed memory.\nSpecifically, `hid_destroy_device()` uses `driver_data` when it calls\n`hid_ishtp_set_feature()` to power off the sensor, so freeing\n`driver_data` beforehand can result in accessing invalid memory.\n\nThis patch resolves the issue by storing the `driver_data` in a temporary\nvariable before calling `hid_destroy_device()`, and then freeing the\n`driver_data` after the device is destroyed.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00235,"percentile":0.14674,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d","tags":[]},{"url":"https://git.kernel.org/stable/c/d3faae7f42181865c799d88c5054176f38ae4625","tags":[]},{"url":"https://git.kernel.org/stable/c/01b18a330cda61cc21423a7d1af92cf31ded8f60","tags":[]},{"url":"https://git.kernel.org/stable/c/cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394","tags":[]},{"url":"https://git.kernel.org/stable/c/560f4d1299342504a6ab8a47f575b5e6b8345ada","tags":[]},{"url":"https://git.kernel.org/stable/c/dea6a349bcaf243fff95dfd0428a26be6a0fb44e","tags":[]},{"url":"https://git.kernel.org/stable/c/eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9","tags":[]},{"url":"https://git.kernel.org/stable/c/07583a0010696a17fb0942e0b499a62785c5fc9f","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":2.93},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < d3faae7f42181865c799d88c5054176f38ae4625",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < 01b18a330cda61cc21423a7d1af92cf31ded8f60",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < 560f4d1299342504a6ab8a47f575b5e6b8345ada",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < dea6a349bcaf243fff95dfd0428a26be6a0fb44e",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9",">= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < 07583a0010696a17fb0942e0b499a62785c5fc9f"]},{"vendor":"Linux","product":"Linux","versions":["4.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-16T13:15:05.405186Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-9393","exploited":false,"provenance":"source"}}