HID: pidff: Fix null pointer dereference in pidff_find_fields
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 224ee88fe39564358ec99b46bf3ee6e6999ae17d · < f8f4d77710e1c38f4a2bd26c88c4878b5b5e817a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: pidff: Fix null pointer dereference in pidff_find_fields
This function triggered a null pointer dereference if used to search for a report that isn't implemented on the device. This happened both for optional and required reports alike.
The same logic was applied to pidff_find_special_field and although pidff_init_fields should return an error earlier if one of the required reports is missing, future modifications could change this logic and resurface this possible null pointer dereference again.
LKML bug report: https://lore.kernel.org/all/CAL-gK7f5=R0nrrQdPtaZZr1fd-cdAMbDMuZ_NLA8vM0SX+nGSw@mail.gmail.com
From the CVE record · Linux
The Linux kernel’s HID pidff code can dereference a null pointer when it searches for a report that a device does not implement, whether the report is optional or required. The input does not specify attacker capabilities, authentication requirements, or user interaction.
Teams running the Linux kernel should check their installations; affected versions are not specified.