Lucene search

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

CVE-2022-48774 dmaengine: ptdma: Fix the error handling path in pt_core_init()

2024-07-1611:13:13
Linux
www.cve.org
7
linux kernel
vulnerability
resolved
dmaengine
ptdma
error handling
resources
dev_err

EPSS

0

Percentile

16.0%

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

dmaengine: ptdma: Fix the error handling path in pt_core_init()

In order to free resources correctly in the error handling path of
pt_core_init(), 2 goto’s have to be switched. Otherwise, some resources
will leak and we will try to release things that have not been allocated
yet.

Also move a dev_err() to a place where it is more meaningful.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/dma/ptdma/ptdma-dev.c"
    ],
    "versions": [
      {
        "version": "fa5d823b16a9",
        "lessThan": "3e41445287af",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fa5d823b16a9",
        "lessThan": "d7de1e4820c5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fa5d823b16a9",
        "lessThan": "3c62fd3406e0",
        "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/dma/ptdma/ptdma-dev.c"
    ],
    "versions": [
      {
        "version": "5.15",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.15",
        "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"
      }
    ]
  }
]

EPSS

0

Percentile

16.0%