Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48723
HistoryJun 20, 2024 - 11:13 a.m.

CVE-2022-48723 spi: uniphier: fix reference count leak in uniphier_spi_probe()

2024-06-2011:13:13
Linux
www.cve.org
4
cve-2022-48723
spi
uniphier
fix reference count leak
linux kernel

0.0004 Low

EPSS

Percentile

15.7%

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

spi: uniphier: fix reference count leak in uniphier_spi_probe()

The issue happens in several error paths in uniphier_spi_probe().
When either dma_get_slave_caps() or devm_spi_register_master() returns
an error code, the function forgets to decrease the refcount of both
dma_rx and dma_tx objects, which may lead to refcount leaks.

Fix it by decrementing the reference count of specific objects in
those error paths.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/spi/spi-uniphier.c"
    ],
    "versions": [
      {
        "version": "28d1dddc59f6",
        "lessThan": "e895e067d73e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "28d1dddc59f6",
        "lessThan": "dd00b4f8f768",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "28d1dddc59f6",
        "lessThan": "447c3d4046d7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "28d1dddc59f6",
        "lessThan": "37c2c83ca4f1",
        "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/spi/spi-uniphier.c"
    ],
    "versions": [
      {
        "version": "5.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.99",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.22",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.8",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2022-48723