Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47158
HistoryMar 25, 2024 - 9:16 a.m.

CVE-2021-47158 net: dsa: sja1105: add error handling in sja1105_setup()

2024-03-2509:16:13
Linux
www.cve.org
linux kernel
vulnerability
sja1105
error handling
memory leak

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

In the Linux kernel, the following vulnerability has been resolved:

net: dsa: sja1105: add error handling in sja1105_setup()

If any of sja1105_static_config_load(), sja1105_clocking_setup() or
sja1105_devlink_setup() fails, we can’t just return in the middle of
sja1105_setup() or memory will leak. Add a cleanup path.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/dsa/sja1105/sja1105_main.c"
    ],
    "versions": [
      {
        "version": "8aa9ebccae87",
        "lessThan": "dd8609f20344",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "8aa9ebccae87",
        "lessThan": "987e4ab8b8a4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "8aa9ebccae87",
        "lessThan": "cec279a898a3",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/dsa/sja1105/sja1105_main.c"
    ],
    "versions": [
      {
        "version": "5.2",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.2",
        "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"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.5%

Related for CVELIST:CVE-2021-47158