Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47020
HistoryFeb 29, 2024 - 10:31 p.m.

CVE-2021-47020 soundwire: stream: fix memory leak in stream config error path

2024-02-2922:31:14
Linux
www.cve.org
linux kernel
vulnerability
soundwire
memory leak

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.4%

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

soundwire: stream: fix memory leak in stream config error path

When stream config is failed, master runtime will release all
slave runtime in the slave_rt_list, but slave runtime is not
added to the list at this time. This patch frees slave runtime
in the config error path to fix the memory leak.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/soundwire/stream.c"
    ],
    "versions": [
      {
        "version": "89e590535f32",
        "lessThan": "342260fe8210",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e590535f32",
        "lessThan": "870533403ffa",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e590535f32",
        "lessThan": "7c468deae306",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e590535f32",
        "lessThan": "2f17ac005b32",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e590535f32",
        "lessThan": "effd2bd62b41",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "89e590535f32",
        "lessThan": "48f17f96a817",
        "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/soundwire/stream.c"
    ],
    "versions": [
      {
        "version": "4.18",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.18",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.191",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.119",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.37",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.11.21",
        "lessThanOrEqual": "5.11.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.4",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.5 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

10.4%