HID: amd_sfh: Fix potential NULL pointer dereference
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
HID: amd_sfh: Fix potential NULL pointer dereference
devm_add_action_or_reset() can suddenly invoke amd_mp2_pci_remove() at registration that will cause NULL pointer dereference since corresponding data is not initialized yet. The patch moves initialization of data before devm_add_action_or_reset().
Found by Linux Driver Verification project (linuxtesting.org).
[jkosina@suse.cz: rebase]
From the CVE record · Linux
The Linux kernel’s amd_sfh HID driver can dereference a NULL pointer if devm_add_action_or_reset() invokes the removal routine during registration before its data is initialized. The input does not establish an attacker path or specify network, authentication, or user-interaction requirements.
Engineers running Linux kernels with the amd_sfh HID driver should check their versions; affected versions are not specified.