Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48859
HistoryJul 16, 2024 - 12:25 p.m.

CVE-2022-48859 net: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr

2024-07-1612:25:23
Linux
www.cve.org
8
linux kernel
vulnerability
net
marvell
prestera
of_node_put
refcount
cve

EPSS

0

Percentile

5.1%

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

net: marvell: prestera: Add missing of_node_put() in prestera_switch_set_base_mac_addr

This node pointer is returned by of_find_compatible_node() with
refcount incremented. Calling of_node_put() to aovid the refcount leak.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/marvell/prestera/prestera_main.c"
    ],
    "versions": [
      {
        "version": "501ef3066c89",
        "lessThan": "b7c2fd1d1263",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "501ef3066c89",
        "lessThan": "4cc66bf17220",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "501ef3066c89",
        "lessThan": "c9ffa3e2bc45",
        "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/ethernet/marvell/prestera/prestera_main.c"
    ],
    "versions": [
      {
        "version": "5.10",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.10",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.29",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.15",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]