net/smc: remove device from smcd_dev_list after failed device_add()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.10.425.12.95.13In 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.
From the CVE record · Linux
In the Linux kernel's net/smc code, a failed device_add() can leave a device on a list after it is freed, corrupting the list. The input does not establish whether an attacker can trigger the failure or whether network access, authentication, or user interaction is required.
Teams running the Linux kernel should check their versions; affected versions are not specified in the input.