Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52571
HistoryMar 02, 2024 - 9:59 p.m.

CVE-2023-52571 power: supply: rk817: Fix node refcount leak

2024-03-0221:59:41
Linux
www.cve.org
3
cve-2023-52571
power supply
rk817
node refcount
linux kernel
smatch static checker
probe function
of_node_put
driver removal time

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

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

power: supply: rk817: Fix node refcount leak

Dan Carpenter reports that the Smatch static checker warning has found
that there is another refcount leak in the probe function. While
of_node_put() was added in one of the return paths, it should in
fact be added for ALL return paths that return an error and at driver
removal time.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/power/supply/rk817_charger.c"
    ],
    "versions": [
      {
        "version": "7d1e3961725e",
        "lessThan": "fe6406238d5a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "54c03bfd094f",
        "lessThan": "70326b46b6a0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "54c03bfd094f",
        "lessThan": "488ef44c068e",
        "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/power/supply/rk817_charger.c"
    ],
    "versions": [
      {
        "version": "6.2",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.2",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.56",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.5.6",
        "lessThanOrEqual": "6.5.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%