CVE-2025-21928

HIGH

Linux Kernel - Use-After-Free in HID intel-ish-hid ishtp_hid_remove

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.8
EPSS 0.0019
EPSS Percentile 8.8%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-416
Status published
Products (27)
linux/Kernel 4.9.0 - 5.4.291linux
linux/Kernel 5.11.0 - 5.15.179linux
linux/Kernel 5.16.0 - 6.1.131linux
linux/Kernel 5.5.0 - 5.10.235linux
linux/Kernel 6.13.0 - 6.13.7linux
linux/Kernel 6.2.0 - 6.6.83linux
linux/Kernel 6.7.0 - 6.12.19linux
Linux/Linux < 4.9
Linux/Linux 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6 - 01b18a330cda61cc21423a7d1af92cf31ded8f60
Linux/Linux 0b28cb4bcb17dcb5fe0763fc3e1a94398b8f6cf6 - 07583a0010696a17fb0942e0b499a62785c5fc9f
... and 17 more
Published Apr 01, 2025
Tracked Since Feb 18, 2026