CVE-2021-47143

net/smc: remove device from smcd_dev_list after failed device_add()

State
Published
Severity
Not scored
Published
Mar 25, 2024
Updated
May 11, 2026
Reserved
Mar 4, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c6ba7c9ba43de1b57e9a53946e7ff988554c84ed to before 8b2cdc004d21a7255f219706dca64411108f7897Affected
  • c6ba7c9ba43de1b57e9a53946e7ff988554c84ed to before 40588782f1016c655ae1d302892f61d35af96842Affected
  • c6ba7c9ba43de1b57e9a53946e7ff988554c84ed to before 444d7be9532dcfda8e0385226c862fd7e986f607Affected
LinuxLinux
  • 4.19Affected
  • before 4.19Not affected
  • 5.10.42 through 5.10.*Not affected
  • 5.12.9 through 5.12.*Not affected
  • 5.13 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.