Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48775
HistoryJul 16, 2024 - 11:13 a.m.

CVE-2022-48775 Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj

2024-07-1611:13:14
Linux
www.cve.org
5
linux kernel
vulnerability
memory leak

EPSS

0

Percentile

5.0%

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

Drivers: hv: vmbus: Fix memory leak in vmbus_add_channel_kobj

kobject_init_and_add() takes reference even when it fails.
According to the doc of kobject_init_and_add():

If this function returns an error, kobject_put() must be called to
properly clean up the memory associated with the object.

Fix memory leak by calling kobject_put().

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/hv/vmbus_drv.c"
    ],
    "versions": [
      {
        "version": "c2e5df616e1a",
        "lessThan": "417947891bd5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c2e5df616e1a",
        "lessThan": "fe595759c2a4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c2e5df616e1a",
        "lessThan": "91d8866ca552",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c2e5df616e1a",
        "lessThan": "c377e2ba78d3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c2e5df616e1a",
        "lessThan": "92e25b637cd4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "c2e5df616e1a",
        "lessThan": "8bc69f86328e",
        "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/hv/vmbus_drv.c"
    ],
    "versions": [
      {
        "version": "4.15",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.15",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.231",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.181",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.102",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.25",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.11",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]