5.5medium
net/smc: remove device from smcd_dev_list after failed device_add()
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.22% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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 * | CVE List |
| linux linux_kernel | from 4.19 before 5.10.42, from 5.11 before 5.12.9, 5.13 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se resolvió la siguiente vulnerabilidad: net/smc: eliminar dispositivo de smcd_dev_list después de fallar device_add() Si falla el dispositivo_add() para smcd_dev, no hay ningún paso de limpieza que revierta el list_add() anterior. Posteriormente, el dispositivo se libera y terminamos con una lista corrupta. Agregue algún manejo de errores que elimine el dispositivo de la lista.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47143 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47143 changed 2026-06-17 | Public domain |