HID: uclogic: Add NULL check in uclogic_input_configured()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ dd613a4e45f8d35f49a63a2064e5308fa5619e29 · < b616453d719ee1b8bf2ea6f6cc6c6258a572a590| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: uclogic: Add NULL check in uclogic_input_configured()
devm_kasprintf() returns NULL when memory allocation fails. Currently, uclogic_input_configured() does not check for this case, which results in a NULL pointer dereference.
Add NULL check after devm_kasprintf() to prevent this issue.
From the CVE record · Linux
The Linux kernel's HID uclogic driver does not check whether a memory allocation fails in uclogic_input_configured(). If it fails, the driver dereferences a NULL pointer. The input does not specify how this condition could be triggered or whether access or user interaction is required.
Engineers running Linux kernels with the HID uclogic driver should check their versions; affected versions are not specified.