# CVE-2021-47380: HID: amd_sfh: Fix potential NULL pointer dereference

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-05-21T15:03:42.325Z
- Modified: 2026-08-05T08:47:32.385Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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]

(As written by CVE List.)

## Affected

- Linux Linux: from 4f567b9f8141a86c7d878fadf136e5d1408e3e61 before 283e4bee701dfcd409dd293f19a268bb2bc8ff38; from 4f567b9f8141a86c7d878fadf136e5d1408e3e61 before d46ef750ed58cbeeba2d9a55c99231c30a172764; 5.11 (not affected: before 5.11; from 5.14.10 up to 5.14.*; from 5.15 up to *)
- linux linux_kernel: before 5.14.10; 5.15

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/283e4bee701dfcd409dd293f19a268bb2bc8ff38> (patch)
- <https://git.kernel.org/stable/c/d46ef750ed58cbeeba2d9a55c99231c30a172764> (patch)

## Sources

- CVE List: [CVE-2021-47380](https://www.cve.org/CVERecord?id=CVE-2021-47380), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47380](https://nvd.nist.gov/vuln/detail/CVE-2021-47380), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47380 · Whole record: https://cve.day/CVE-2021-47380.json · Rebuilt by cve.day 2026-11-25T22:58:08.826Z
