Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47143
HistoryMar 25, 2024 - 9:07 a.m.

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

2024-03-2509:07:41
Linux
www.cve.org
linux kernel
vulnerability
net/smc
device_add
error handling

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.5%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/smc/smc_ism.c"
    ],
    "versions": [
      {
        "version": "c6ba7c9ba43d",
        "lessThan": "8b2cdc004d21",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c6ba7c9ba43d",
        "lessThan": "40588782f101",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c6ba7c9ba43d",
        "lessThan": "444d7be9532d",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/smc/smc_ism.c"
    ],
    "versions": [
      {
        "version": "4.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.42",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.9",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.6 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.5%