CVE-2023-54207
Use-After-Free in Linux Kernel HID uclogic Input Device Name
Publication date: 2025-12-30
Last updated on: 2026-02-26
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 6.5 (inc) to 6.5.3 (exc) |
| linux | linux_kernel | From 6.2 (inc) to 6.4.16 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 6.1.53 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.199 (exc) |
| linux | linux_kernel | From 4.1 (inc) to 5.10.249 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-416 | The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer. |
Attack-Flow Graph
AI Powered Q&A
What immediate steps should I take to mitigate this vulnerability?
Apply the patch or update to a Linux kernel version that includes the fix for this vulnerability, which corrects the devm device reference for the hidinput input_dev name to prevent use-after-free issues.
Can you explain this vulnerability to me?
This vulnerability involves the Linux kernel's HID uclogic driver incorrectly referencing the input device (input_dev) instead of the HID device when allocating the input_dev name using devm. This incorrect reference leads to a use-after-free condition when the input_dev is unregistered and a uevent that depends on the input_dev name is fired. At that time, the name would have already been freed, causing potential instability or crashes. The fix corrects the reference to the HID device and simplifies memory allocation using devm_kasprintf.
How can this vulnerability impact me? :
This vulnerability can cause use-after-free errors in the Linux kernel when the input device is unregistered and a related uevent is fired. This may lead to system instability, crashes, or unexpected behavior in the handling of input devices, potentially affecting system reliability.