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.
[ { "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" } ]