CVEvulnerability
CVE-2021-47380
5.5 MEDIUM
Official page ↗
- Status
- Modified
- Published
- 2024-05-21
- Last modified
- 2026-08-04
- Assigner
- 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- CVSS 3.1 (416baaa9-dc9f-4396-8d5f-8c081fb06d67)
- 7.8 HIGH — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CVSS 3.1 ([email protected])
- 5.5 MEDIUM — CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Weaknesses
- CWE-476
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).
[[email protected]: rebase]
Affected configurations
• linux linux kernel (< 5.14.10)
• linux linux kernel 5.15
Related
Weakness · CWE (1)
- CWE-476 NULL Pointer Dereference weakness
References
- https://git.kernel.org/stable/c/283e4bee701dfcd409dd293f19a268bb2bc8ff38 Patch
- https://git.kernel.org/stable/c/d46ef750ed58cbeeba2d9a55c99231c30a172764 Patch
- https://git.kernel.org/stable/c/283e4bee701dfcd409dd293f19a268bb2bc8ff38 Patch
- https://git.kernel.org/stable/c/d46ef750ed58cbeeba2d9a55c99231c30a172764 Patch