CVE-2023-53253
published high CVSS 3.1 · 8.8HID: nvidia-shield: Reference hid_device devm allocation of input_dev name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux09308562d4afb1abc66366608fa1cb9de783272f to < b85d3807e5ec368bfd5b20245347d7c1434aff76 · 09308562d4afb1abc66366608fa1cb9de783272f to < 197d3143520fec9fde89aebabc9f0d7464f08e50 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.5.3 through 6.5.* (unaffected · semver) · 6.6 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: HID: nvidia-shield: Reference hid_device devm allocation of input_dev name Use hid_device for devm allocation of the input_dev name to avoid a use-after-free. input_unregister_device would trigger devres cleanup of all resources associated with the input_dev, free-ing the name. The name would subsequently be used in a uevent fired at the end of unregistering the input_dev.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:A - hid-nvidia-shield's id_table explicitly includes HID_BLUETOOTH_DEVICE for the Thunderstrike controller (and Kconfig depends on BT_HIDP), so an in-range attacker can connect a crafted Bluetooth HID device and disconnect it to trigger the UAF; Adjacent is higher severity than the USB-only Physical path. AC:L - Probe unconditionally allocates the input_dev name via devm against &idev->dev when haptics are enabled, and disconnect reliably hits the free-then-uevent teardown ordering with no race or attacker-uncontrollable condition required. PR:N - Bluetooth HID enumeration and driver bind/unbind run from kernel hotplug with no account, capability, or authentication on the target; the attacker needs no local privileges on the victim system. UI:N - The attacker performs connect and disconnect themselves (or via Just Works / auto-reconnect HID pairing), and the kernel probe/teardown path fires the uevent without requiring the victim to open a file or otherwise interact. S:U - The use-after-free corrupts kernel heap state within the same OS security authority; it does not cross a VM, IOMMU, or sandbox boundary. C:H - The freed input_dev name string is read via %s into the KOBJ_REMOVE uevent, so a groomed reallocation of the kmalloc object yields disclosure of attacker-chosen heap contents; kernel UAF is scored High confidentiality. I:H - The UAF is a sprayable kmalloc object whose dangling pointer is consumed during teardown; heap grooming enables overlapping objects and control-flow/write primitives, so integrity impact is High per UAF guidance. A:H - Use of the freed name during uevent generation reliably produces a kernel oops/panic (or KASAN slab-use-after-free), and the attacker can repeat connect/disconnect at will.
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.8 | high | CISA-ADP · adp | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 09308562d4afb1abc66366608fa1cb9de783272f to < b85d3807e5ec368bfd5b20245347d7c1434aff76 (affected · git)09308562d4afb1abc66366608fa1cb9de783272f to < 197d3143520fec9fde89aebabc9f0d7464f08e50 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.5 (affected)0 to < 6.5 (unaffected · semver)6.5.3 through 6.5.* (unaffected · semver)6.6 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
1- CWE-416 CWE-416 Use After Free
References
2Provider assertions
2Linux · cna
HID: nvidia-shield: Reference hid_device devm allocation of input_dev name
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9dd2bf02f3c8e504a2682cca54caa40d898ca3336593809406cb6ba7f8fa739c
- Ingested
- 23 Sep 2026, 08:14:44 UTC
- Source record
- Official CVE record