Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2021-47380

HID: amd_sfh: Fix potential NULL pointer dereference

Description

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]

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 4f567b9f8141a86c7d878fadf136e5d1408e3e61 to < 283e4bee701dfcd409dd293f19a268bb2bc8ff38affected
  • 4f567b9f8141a86c7d878fadf136e5d1408e3e61 to < d46ef750ed58cbeeba2d9a55c99231c30a172764affected

Linux Linux

Default version status: affected

  • 5.11affected
  • 0 to < 5.11unaffected
  • 5.14.10 to ≤ 5.14.*unaffected
  • 5.15 to ≤ *unaffected

References