NULL pointer dereference in Linux

CVE-2021-47380

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]

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.002, 12.7th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 4f567b9f8141a86c7d878fadf136e5d1408e3e61, 5.11, 0
  • Linux Kernel — versions 5.15

Weakness classification (CWE)

References