CVE-2023-54207
Unknown Unknown - Not Provided
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
In the Linux kernel, the following vulnerability has been resolved: HID: uclogic: Correct devm device reference for hidinput input_dev name Reference the HID device rather than the input device for the devm allocation of the input_dev name. Referencing the input_dev would lead to a use-after-free when the input_dev was unregistered and subsequently fires a uevent that depends on the name. At the point of firing the uevent, the name would be freed by devres management. Use devm_kasprintf to simplify the logic for allocating memory and formatting the input_dev name string.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-30
Last Modified
2026-02-26
Generated
2026-05-07
AI Q&A
2025-12-30
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 5 associated CPEs
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
CWE Icon
KEV
KEV Icon
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.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart