# CVE-2023-54207: HID: uclogic: Correct devm device reference for hidinput input_dev name

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-12-30T12:11:06.643Z
- Modified: 2026-10-28T19:10:00.193Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from cce2dbdf258e6b27b2b100f511531edabb77f427 before f78bb490b16ecb506d4904be4b00bf9aad6588f9; from cce2dbdf258e6b27b2b100f511531edabb77f427 before 51f49e3927ad545cec0c0afb86856ccacd9f085d; from cce2dbdf258e6b27b2b100f511531edabb77f427 before f283805d984343b2f216e2f4c6c7af265b9542ae; from cce2dbdf258e6b27b2b100f511531edabb77f427 before 4c2707dfee5847dc0b5ecfbe512c29c93832fdc4; from cce2dbdf258e6b27b2b100f511531edabb77f427 before 58f0d1c0e494a88f301bf455da7df4366f179bbb; from cce2dbdf258e6b27b2b100f511531edabb77f427 before dd613a4e45f8d35f49a63a2064e5308fa5619e29; 4.1 (not affected: before 4.1; from 5.10.249 up to 5.10.*; from 5.15.199 up to 5.15.*; from 6.1.53 up to 6.1.*; from 6.4.16 up to 6.4.*; from 6.5.3 up to 6.5.*; from 6.6 up to *)
- linux linux_kernel: from 4.1 before 5.10.249; from 5.11 before 5.15.199; from 5.16 before 6.1.53; from 6.2 before 6.4.16; from 6.5 before 6.5.3

## References

- <https://git.kernel.org/stable/c/f78bb490b16ecb506d4904be4b00bf9aad6588f9> (patch)
- <https://git.kernel.org/stable/c/51f49e3927ad545cec0c0afb86856ccacd9f085d> (patch)
- <https://git.kernel.org/stable/c/f283805d984343b2f216e2f4c6c7af265b9542ae> (patch)
- <https://git.kernel.org/stable/c/4c2707dfee5847dc0b5ecfbe512c29c93832fdc4> (patch)
- <https://git.kernel.org/stable/c/58f0d1c0e494a88f301bf455da7df4366f179bbb> (patch)
- <https://git.kernel.org/stable/c/dd613a4e45f8d35f49a63a2064e5308fa5619e29> (patch)

## Sources

- CVE List: [CVE-2023-54207](https://www.cve.org/CVERecord?id=CVE-2023-54207), CVE Terms of Use, modified 2026-06-11
- NVD: [CVE-2023-54207](https://nvd.nist.gov/vuln/detail/CVE-2023-54207), Public domain, modified 2026-10-28

---

Page: https://cve.day/CVE-2023-54207 · Whole record: https://cve.day/CVE-2023-54207.json · Rebuilt by cve.day 2026-11-25T22:58:35.221Z
