# CVE-2025-21928: HID: intel-ish-hid: Fix use-after-free issue in ishtp\_hid\_remove()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-04-01T15:40:59.033Z
- **Modified:** 2026-06-17T08:44:38.060Z

## Who should check

- Anyone running Linux \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< d3faae7f42181865c799d88c5054176f38ae4625; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 01b18a330cda61cc21423a7d1af92cf31ded8f60; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 560f4d1299342504a6ab8a47f575b5e6b8345ada; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< dea6a349bcaf243fff95dfd0428a26be6a0fb44e; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 07583a0010696a17fb0942e0b499a62785c5fc9f
- Anyone running Linux 4.9

## Description

In the Linux kernel, the following vulnerability has been resolved:

HID: intel-ish-hid: Fix use-after-free issue in ishtp\_hid\_remove()

The system can experience a random crash a few minutes after the driver is
removed. This issue occurs due to improper handling of memory freeing in
the ishtp\_hid\_remove() function.

The function currently frees the \`driver\_data\` directly within the loop
that destroys the HID devices, which can lead to accessing freed memory.
Specifically, \`hid\_destroy\_device()\` uses \`driver\_data\` when it calls
\`hid\_ishtp\_set\_feature()\` to power off the sensor, so freeing
\`driver\_data\` beforehand can result in accessing invalid memory.

This patch resolves the issue by storing the \`driver\_data\` in a temporary
variable before calling \`hid\_destroy\_device()\`, and then freeing the
\`driver\_data\` after the device is destroyed.

## Affected and fixed versions

- Linux: \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< d3faae7f42181865c799d88c5054176f38ae4625; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 01b18a330cda61cc21423a7d1af92cf31ded8f60; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 560f4d1299342504a6ab8a47f575b5e6b8345ada; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< dea6a349bcaf243fff95dfd0428a26be6a0fb44e; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 07583a0010696a17fb0942e0b499a62785c5fc9f (cvelist)
- Linux: 4.9 (cvelist)

## Mitigation

- Upgrade Linux to 07583a0010696a17fb0942e0b499a62785c5fc9f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21928. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21928.md
Affected: Linux >= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d; >= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < d3faae7f42181865c799d88c5054176f38ae4625; >= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, < 01b18a330cda61cc21423a7d1af92cf31ded8f60; >= 0b28cb4bcb17dcb5fe0763f…
Fixed in: Linux 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d, Linux 01b18a330cda61cc21423a7d1af92cf31ded8f60, Linux 560f4d1299342504a6ab8a47f575b5e6b8345ada, Linux 07583a0010696a17fb0942e0b499a62785c5fc9f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21928 being exploited?

There is no confirmed exploitation: CVE-2025-21928 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21928?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21928?

Linux \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< d3faae7f42181865c799d88c5054176f38ae4625; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 01b18a330cda61cc21423a7d1af92cf31ded8f60; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 560f4d1299342504a6ab8a47f575b5e6b8345ada; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< dea6a349bcaf243fff95dfd0428a26be6a0fb44e; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9; \>= 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6, \< 07583a0010696a17fb0942e0b499a62785c5fc9f; Linux 4.9.

### Is there a fix for CVE-2025-21928?

Yes. Fixed in Linux 0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d, Linux 01b18a330cda61cc21423a7d1af92cf31ded8f60, Linux 560f4d1299342504a6ab8a47f575b5e6b8345ada, Linux 07583a0010696a17fb0942e0b499a62785c5fc9f. Upgrade Linux to 07583a0010696a17fb0942e0b499a62785c5fc9f or later.

### How do I check if I'm affected by CVE-2025-21928?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0c1fb475ef999d6c22fc3f963fdf20cb3ed1b03d>
- patch: <https://git.kernel.org/stable/c/d3faae7f42181865c799d88c5054176f38ae4625>
- patch: <https://git.kernel.org/stable/c/01b18a330cda61cc21423a7d1af92cf31ded8f60>
- patch: <https://git.kernel.org/stable/c/cf1a6015d2f6b1f0afaa0fd6a0124ff2c7943394>
- patch: <https://git.kernel.org/stable/c/560f4d1299342504a6ab8a47f575b5e6b8345ada>
- patch: <https://git.kernel.org/stable/c/dea6a349bcaf243fff95dfd0428a26be6a0fb44e>
- patch: <https://git.kernel.org/stable/c/eb0695d87a81e7c1f0509b7d8ee7c65fbc26aec9>
- patch: <https://git.kernel.org/stable/c/07583a0010696a17fb0942e0b499a62785c5fc9f>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21928>

HTML: <https://flawdb.com/CVE-2025-21928> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21928>
