CVE-2025-21923

In the Linux kernel, the following vulnerability has been resolved: HID: hid-steam: Fix use-after-free when detaching device When a hid-steam device is removed it must clean up the client_hdev used for intercepting hidraw access. This can lead to scheduling deferred work to reattach the input device. Though the cleanup cancels the deferred work, this was done before the client_hdev itself is cleaned up, so it gets rescheduled. This patch fixes the ordering to make sure the deferred work is properly canceled.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

History

11 Apr 2025, 13:11

Type Values Removed Values Added
First Time Linux linux Kernel
Linux
CPE cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
CWE CWE-416
References () https://git.kernel.org/stable/c/026714ec7546de741826324a6a1914c91024d06c - () https://git.kernel.org/stable/c/026714ec7546de741826324a6a1914c91024d06c - Patch
References () https://git.kernel.org/stable/c/a899adf7063c6745aaff1ec869f3c7f6329ed0a1 - () https://git.kernel.org/stable/c/a899adf7063c6745aaff1ec869f3c7f6329ed0a1 - Patch
References () https://git.kernel.org/stable/c/e53fc232a65f7488ab75d03a5b95f06aaada7262 - () https://git.kernel.org/stable/c/e53fc232a65f7488ab75d03a5b95f06aaada7262 - Patch
References () https://git.kernel.org/stable/c/ea3f18d2f02629653b7bfe42607737ccd1343e54 - () https://git.kernel.org/stable/c/ea3f18d2f02629653b7bfe42607737ccd1343e54 - Patch
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 7.8
Summary
  • (es) En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: HID: hid-steam: Se corrige el error "use-after-free" al desconectar el dispositivo. Al desconectar un dispositivo hid-steam, este debe limpiar el archivo client_hdev utilizado para interceptar el acceso a hidraw. Esto puede provocar la programación de un trabajo diferido para volver a conectar el dispositivo de entrada. Aunque la limpieza cancela el trabajo diferido, esto se realizó antes de que se limpiara el archivo client_hdev, por lo que se reprograma. Este parche corrige el orden para garantizar que el trabajo diferido se cancele correctamente.

01 Apr 2025, 16:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-04-01 16:15

Updated : 2025-04-16 14:15


NVD link : CVE-2025-21923

Mitre link : CVE-2025-21923

CVE.ORG link : CVE-2025-21923


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-416

Use After Free