CVE-2023-54207

HID: uclogic: Correct devm device reference for hidinput input_dev name

State
Published
Severity
Not scored
Published
Dec 30, 2025
Updated
Jun 11, 2026
Reserved
Dec 30, 2025

Read the record on cve.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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • cce2dbdf258e6b27b2b100f511531edabb77f427 to before f78bb490b16ecb506d4904be4b00bf9aad6588f9Affected
  • cce2dbdf258e6b27b2b100f511531edabb77f427 to before 51f49e3927ad545cec0c0afb86856ccacd9f085dAffected
  • cce2dbdf258e6b27b2b100f511531edabb77f427 to before f283805d984343b2f216e2f4c6c7af265b9542aeAffected
  • cce2dbdf258e6b27b2b100f511531edabb77f427 to before 4c2707dfee5847dc0b5ecfbe512c29c93832fdc4Affected
  • cce2dbdf258e6b27b2b100f511531edabb77f427 to before 58f0d1c0e494a88f301bf455da7df4366f179bbbAffected
  • cce2dbdf258e6b27b2b100f511531edabb77f427 to before dd613a4e45f8d35f49a63a2064e5308fa5619e29Affected
LinuxLinux
  • 4.1Affected
  • before 4.1Not affected
  • 5.10.249 through 5.10.*Not affected
  • 5.15.199 through 5.15.*Not affected
  • 6.1.53 through 6.1.*Not affected
  • 6.4.16 through 6.4.*Not affected
  • 6.5.3 through 6.5.*Not affected
  • 6.6 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.