Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52663
HistoryMay 17, 2024 - 1:41 p.m.

CVE-2023-52663 ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()

2024-05-1713:41:05
Linux
www.cve.org
1
asoc
sof
amd
fix
memory leak
linux kernel
vulnerability
resolved
driver
kasprintf
devm_kasprintf
allocation
memory.

7.3 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.5%

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

ASoC: SOF: amd: Fix memory leak in amd_sof_acp_probe()

Driver uses kasprintf() to initialize fw_{code,data}_bin members of
struct acp_dev_data, but kfree() is never called to deallocate the
memory, which results in a memory leak.

Fix the issue by switching to devm_kasprintf(). Additionally, ensure the
allocation was successful by checking the pointer validity.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "sound/soc/sof/amd/acp.c"
    ],
    "versions": [
      {
        "version": "f7da88003c53",
        "lessThan": "88028c45d587",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f7da88003c53",
        "lessThan": "be4760799c6a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f7da88003c53",
        "lessThan": "7296152e5885",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f7da88003c53",
        "lessThan": "222be59e5eed",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "sound/soc/sof/amd/acp.c"
    ],
    "versions": [
      {
        "version": "6.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.23",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.11",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.2",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.3 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

15.5%