Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48661
HistoryApr 28, 2024 - 1:01 p.m.

CVE-2022-48661 gpio: mockup: Fix potential resource leakage when register a chip

2024-04-2813:01:26
Linux
www.cve.org
4
linux kernel
vulnerability
resource leakage
software node creation

AI Score

5.6

Confidence

High

EPSS

0

Percentile

5.1%

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

gpio: mockup: Fix potential resource leakage when register a chip

If creation of software node fails, the locally allocated string
array is left unfreed. Free it on error path.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/gpio/gpio-mockup.c"
    ],
    "versions": [
      {
        "version": "6fda593f3082",
        "lessThan": "9b26723e058f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6fda593f3082",
        "lessThan": "41f857033c44",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6fda593f3082",
        "lessThan": "02743c4091cc",
        "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/gpio/gpio-mockup.c"
    ],
    "versions": [
      {
        "version": "5.15",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.15",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.71",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.19.12",
        "lessThanOrEqual": "5.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.0",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

5.6

Confidence

High

EPSS

0

Percentile

5.1%