{"id":"CVE-2025-21928","state":"PUBLISHED","title":"HID: intel-ish-hid: Fix use-after-free issue in ishtp_hid_remove()","description":"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.","publishedAt":"2025-04-01T15:40:59.033Z","updatedAt":"2026-05-11T21:09:14.996Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"d3faae7f42181865c799d88c5054176f38ae4625","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"01b18a330cda61cc21423a7d1af92cf31ded8f60","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"560f4d1299342504a6ab8a47f575b5e6b8345ada","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"dea6a349bcaf243fff95dfd0428a26be6a0fb44e","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"07583a0010696a17fb0942e0b499a62785c5fc9f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/intel-ish-hid/ishtp-hid.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.9","versionType":"semver"},{"version":"5.4.291","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.235","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.179","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.131","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.83","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.19","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.7","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/intel-ish-hid/ishtp-hid.c"]}],"references":["https://git.kernel.org/stable/c/0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d","https://git.kernel.org/stable/c/d3faae7f42181865c799d88c5054176f38ae4625","https://git.kernel.org/stable/c/01b18a330cda61cc21423a7d1af92cf31ded8f60","https://git.kernel.org/stable/c/cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394","https://git.kernel.org/stable/c/560f4d1299342504a6ab8a47f575b5e6b8345ada","https://git.kernel.org/stable/c/dea6a349bcaf243fff95dfd0428a26be6a0fb44e","https://git.kernel.org/stable/c/eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9","https://git.kernel.org/stable/c/07583a0010696a17fb0942e0b499a62785c5fc9f","https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21928.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21928","state":"PUBLISHED","datePublished":"2025-04-01T15:40:59.033Z","dateUpdated":"2026-05-11T21:09:14.996Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.788Z"},"containers":{"cna":{"title":"HID: intel-ish-hid: Fix use-after-free issue in ishtp_hid_remove()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"d3faae7f42181865c799d88c5054176f38ae4625","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"01b18a330cda61cc21423a7d1af92cf31ded8f60","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"560f4d1299342504a6ab8a47f575b5e6b8345ada","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"dea6a349bcaf243fff95dfd0428a26be6a0fb44e","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9","versionType":"git"},{"version":"0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6","status":"affected","lessThan":"07583a0010696a17fb0942e0b499a62785c5fc9f","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/intel-ish-hid/ishtp-hid.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.9","versionType":"semver"},{"version":"5.4.291","status":"unaffected","lessThanOrEqual":"5.4.*","versionType":"semver"},{"version":"5.10.235","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.179","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.131","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.83","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.19","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13.7","status":"unaffected","lessThanOrEqual":"6.13.*","versionType":"semver"},{"version":"6.14","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/intel-ish-hid/ishtp-hid.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d"},{"url":"https://git.kernel.org/stable/c/d3faae7f42181865c799d88c5054176f38ae4625"},{"url":"https://git.kernel.org/stable/c/01b18a330cda61cc21423a7d1af92cf31ded8f60"},{"url":"https://git.kernel.org/stable/c/cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394"},{"url":"https://git.kernel.org/stable/c/560f4d1299342504a6ab8a47f575b5e6b8345ada"},{"url":"https://git.kernel.org/stable/c/dea6a349bcaf243fff95dfd0428a26be6a0fb44e"},{"url":"https://git.kernel.org/stable/c/eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9"},{"url":"https://git.kernel.org/stable/c/07583a0010696a17fb0942e0b499a62785c5fc9f"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:09:14.996Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"5.4.291"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"5.10.235"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"5.15.179"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.1.131"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.6.83"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.12.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.13.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.14"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-21928","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-04-16T13:15:05.405186Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-16T13:19:52.863Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T19:39:26.507Z"}}]}}}