CVE-2023-52571

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-52571
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52571.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-52571
Downstream
Published
2024-03-02T21:59:41Z
Modified
2025-10-21T14:16:00.592379Z
Severity
  • 7.1 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
power: supply: rk817: Fix node refcount leak
Details

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 ofnodeput() 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.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7d1e3961725e69774871b081a065c2b3640c5f0e
Fixed
fe6406238d5a24e9fb0286c71edd67b99d8db58d
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
54c03bfd094fb74f9533a9c28250219afe182382
Fixed
70326b46b6a043f7e7404b2ff678b033c06d6577
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
54c03bfd094fb74f9533a9c28250219afe182382
Fixed
488ef44c068e79752dba8eda0b75f524f111a695

Affected versions

v6.*

v6.1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.10
v6.1.11
v6.1.12
v6.1.13
v6.1.14
v6.1.15
v6.1.16
v6.1.17
v6.1.18
v6.1.19
v6.1.2
v6.1.20
v6.1.21
v6.1.22
v6.1.23
v6.1.24
v6.1.25
v6.1.26
v6.1.27
v6.1.28
v6.1.29
v6.1.3
v6.1.30
v6.1.31
v6.1.32
v6.1.33
v6.1.34
v6.1.35
v6.1.36
v6.1.37
v6.1.38
v6.1.39
v6.1.4
v6.1.40
v6.1.41
v6.1.42
v6.1.43
v6.1.44
v6.1.45
v6.1.46
v6.1.47
v6.1.48
v6.1.49
v6.1.5
v6.1.50
v6.1.51
v6.1.52
v6.1.53
v6.1.54
v6.1.55
v6.1.6
v6.1.7
v6.1.8
v6.1.9
v6.2
v6.2-rc1
v6.2-rc2
v6.2-rc3
v6.2-rc4
v6.2-rc5
v6.2-rc6
v6.2-rc7
v6.2-rc8
v6.3
v6.3-rc1
v6.3-rc2
v6.3-rc3
v6.3-rc4
v6.3-rc5
v6.3-rc6
v6.3-rc7
v6.4
v6.4-rc1
v6.4-rc2
v6.4-rc3
v6.4-rc4
v6.4-rc5
v6.4-rc6
v6.4-rc7
v6.5
v6.5-rc1
v6.5-rc2
v6.5-rc3
v6.5-rc4
v6.5-rc5
v6.5-rc6
v6.5-rc7
v6.5.1
v6.5.2
v6.5.3
v6.5.4
v6.5.5
v6.6-rc1

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@70326b46b6a043f7e7404b2ff678b033c06d6577",
        "target": {
            "file": "drivers/power/supply/rk817_charger.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "219661939911958068488557818767278520705",
                "254541956427793856432211530586139168594",
                "115431562095499318603419691942733461448",
                "104213619719797233022542009269807886382",
                "28034851307350871557191600260369369389",
                "242306267915711816039245513120623156587",
                "57630129161226509885052730321793460687",
                "4928644097848803932759063360608834074",
                "316832827466852823283895200145917664642",
                "125703162543833196147539785795663316283",
                "185127717236011595432296891858441690074"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2023-52571-080ae5b7"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe6406238d5a24e9fb0286c71edd67b99d8db58d",
        "target": {
            "file": "drivers/power/supply/rk817_charger.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "219661939911958068488557818767278520705",
                "254541956427793856432211530586139168594",
                "115431562095499318603419691942733461448",
                "104213619719797233022542009269807886382",
                "28034851307350871557191600260369369389",
                "242306267915711816039245513120623156587",
                "57630129161226509885052730321793460687",
                "4928644097848803932759063360608834074",
                "316832827466852823283895200145917664642",
                "125703162543833196147539785795663316283",
                "185127717236011595432296891858441690074"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2023-52571-25d3ab5d"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@fe6406238d5a24e9fb0286c71edd67b99d8db58d",
        "target": {
            "function": "rk817_charger_probe",
            "file": "drivers/power/supply/rk817_charger.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "120941191337324856096404124745806103822",
            "length": 3072.0
        },
        "id": "CVE-2023-52571-2d04428a"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@488ef44c068e79752dba8eda0b75f524f111a695",
        "target": {
            "file": "drivers/power/supply/rk817_charger.c"
        },
        "signature_type": "Line",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "219661939911958068488557818767278520705",
                "254541956427793856432211530586139168594",
                "115431562095499318603419691942733461448",
                "104213619719797233022542009269807886382",
                "28034851307350871557191600260369369389",
                "242306267915711816039245513120623156587",
                "57630129161226509885052730321793460687",
                "4928644097848803932759063360608834074",
                "316832827466852823283895200145917664642",
                "125703162543833196147539785795663316283",
                "185127717236011595432296891858441690074"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2023-52571-311d9d5a"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@70326b46b6a043f7e7404b2ff678b033c06d6577",
        "target": {
            "function": "rk817_charger_probe",
            "file": "drivers/power/supply/rk817_charger.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "101271287391180227027997777493790566376",
            "length": 3062.0
        },
        "id": "CVE-2023-52571-78ce2da9"
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@488ef44c068e79752dba8eda0b75f524f111a695",
        "target": {
            "function": "rk817_charger_probe",
            "file": "drivers/power/supply/rk817_charger.c"
        },
        "signature_type": "Function",
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "function_hash": "101271287391180227027997777493790566376",
            "length": 3062.0
        },
        "id": "CVE-2023-52571-da27d720"
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.56
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.5.6