CVE-2023-54207 HID: uclogic: Correct devm device reference for hidinput input_dev name
A use-after-free in the Linux kernel uclogic HID driver allows attackers to cause denial of service or potentially execute code via crafted input device events.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-54207?
CVE-2023-54207 is a high-severity use after free vulnerability in Linux kernel, published on 30 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-416
Which versions are affected by CVE-2023-54207?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-54207?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-54207 being exploited?
There is no known exploitation of CVE-2023-54207 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-78377, BELL-CVE-2023-54207, DEBIAN-CVE-2023-54207, GHSA-hrv6-wqc3-mmr3, ROOT-OS-UBUNTU-2204-CVE-2023-54207, UBUNTU-CVE-2023-54207.