# CVE-2021-47143: net/smc: remove device from smcd_dev_list after failed device_add()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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 14% of CVEs (2026-12-01)
- Published: 2024-03-25T09:07:41.075Z
- Modified: 2026-06-17T04:16:38.720Z
- Weaknesses: CWE-459
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from c6ba7c9ba43de1b57e9a53946e7ff988554c84ed before 8b2cdc004d21a7255f219706dca64411108f7897; from c6ba7c9ba43de1b57e9a53946e7ff988554c84ed before 40588782f1016c655ae1d302892f61d35af96842; from c6ba7c9ba43de1b57e9a53946e7ff988554c84ed before 444d7be9532dcfda8e0385226c862fd7e986f607; 4.19 (not affected: before 4.19; from 5.10.42 up to 5.10.*; from 5.12.9 up to 5.12.*; from 5.13 up to *)
- linux linux_kernel: from 4.19 before 5.10.42; from 5.11 before 5.12.9; 5.13

## References

- <https://git.kernel.org/stable/c/8b2cdc004d21a7255f219706dca64411108f7897> (patch)
- <https://git.kernel.org/stable/c/40588782f1016c655ae1d302892f61d35af96842> (patch)
- <https://git.kernel.org/stable/c/444d7be9532dcfda8e0385226c862fd7e986f607> (patch)

## Sources

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

---

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