{"id":"CVE-2025-21928","aliases":["CVE-2025-21928"],"related":[],"kind":"vulnerability","state":"published","title":"HID: intel-ish-hid: Fix use-after-free issue in ishtp_hid_remove()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: HID: intel-ish-hid: soluciona el problema de use-after-free en ishtp_hid_remove() El sistema puede experimentar un bloqueo aleatorio unos minutos después de eliminar el controlador. Este problema se produce debido a la gestión incorrecta de la liberación de memoria en la función ishtp_hid_remove(). La función actualmente libera `driver_data` directamente dentro del bucle que destruye los dispositivos HID, lo que puede llevar al acceso a la memoria liberada. Específicamente, `hid_destroy_device()` usa `driver_data` cuando llama a `hid_ishtp_set_feature()` para apagar el sensor, por lo que liberar `driver_data` de antemano puede resultar en el acceso a memoria no válida. Este parche resuelve el problema almacenando `driver_data` en una variable temporal antes de llamar a `hid_destroy_device()` y luego liberando `driver_data` después de que se destruye el dispositivo.","source":"nvd"}],"published":"2025-04-01T15:40:59.033Z","modified":"2026-06-17T08:44:38.060Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"d3faae7f42181865c799d88c5054176f38ae4625","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"01b18a330cda61cc21423a7d1af92cf31ded8f60","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"560f4d1299342504a6ab8a47f575b5e6b8345ada","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"dea6a349bcaf243fff95dfd0428a26be6a0fb44e","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9","status":"affected"},{"type":"git","introduced":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","fixed":"07583a0010696a17fb0942e0b499a62785c5fc9f","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"5.4.291","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.235","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.179","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.131","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.83","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.19","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.7","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.9","fixed":"5.4.291"},{"status":"affected","introduced":"5.5","fixed":"5.10.235"},{"status":"affected","introduced":"5.11","fixed":"5.15.179"},{"status":"affected","introduced":"5.16","fixed":"6.1.131"},{"status":"affected","introduced":"6.2","fixed":"6.6.83"},{"status":"affected","introduced":"6.7","fixed":"6.12.19"},{"status":"affected","introduced":"6.13","fixed":"6.13.7"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"},{"status":"affected","version":"6.14"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d3faae7f42181865c799d88c5054176f38ae4625","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/01b18a330cda61cc21423a7d1af92cf31ded8f60","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/560f4d1299342504a6ab8a47f575b5e6b8345ada","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dea6a349bcaf243fff95dfd0428a26be6a0fb44e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/07583a0010696a17fb0942e0b499a62785c5fc9f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-04-16T13:15:05.405Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-21928","url":"https://www.cve.org/CVERecord?id=CVE-2025-21928","licence":"CVE Terms of Use","modified":"2026-05-11T21:09:14.996Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-21928","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21928","licence":"Public domain","modified":"2026-06-17T08:44:38.060Z"}],"updatedAt":"2026-11-25T22:58:55.891Z","epss":{"score":0.00235,"percentile":0.15407,"date":"2026-12-01T12:00:22.000Z"}}