What’s Vulnerable › Vulnerabilities
CVE-2021-47143: net/smc: remove device from smcd_dev_list after failed device_add()
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-03-25 · updated 2026-06-17
- Weakness: CWE-459
Description
In the Linux kernel, the following vulnerability has been resolved: net/smc: remove device from smcd_dev_list after failed device_add() If the device_add() for a smcd_dev fails, there's no cleanup step that rolls back the earlier list_add(). The device subsequently gets freed, and we end up with a corrupted list. Add some error handling that removes the device from the list.
Affected products
- Linux kernel: from 4.19 before 5.10.42; from 5.11 before 5.12.9; 5.13-rc1, 5.13-rc2, 5.13-rc3 — fixed in 5.10.42, 5.12.9
How to fix
Upgrade to a fixed version: Linux kernel 5.10.42, 5.12.9. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/40588782f1016c655ae1d302892f61d35af96842
- https://git.kernel.org/stable/c/444d7be9532dcfda8e0385226c862fd7e986f607
- https://git.kernel.org/stable/c/8b2cdc004d21a7255f219706dca64411108f7897
- https://git.kernel.org/stable/c/40588782f1016c655ae1d302892f61d35af96842
- https://git.kernel.org/stable/c/444d7be9532dcfda8e0385226c862fd7e986f607
- https://git.kernel.org/stable/c/8b2cdc004d21a7255f219706dca64411108f7897
Get alerted when CVE-2021-47143 or the next vulnerability affects your stack