{"id":"CVE-2022-50196","summary":"soc: qcom: ocmem: Fix refcount leak in of_get_ocmem","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nsoc: qcom: ocmem: Fix refcount leak in of_get_ocmem\n\nof_parse_phandle() returns a node pointer with refcount\nincremented, we should use of_node_put() on it when not need anymore.\nAdd missing of_node_put() to avoid refcount leak.\nof_node_put() will check NULL pointer.","modified":"2026-04-03T13:14:43.170136Z","published":"2025-06-18T11:03:40.150Z","related":["SUSE-SU-2025:02264-1","SUSE-SU-2025:02321-1","SUSE-SU-2025:02322-1","SUSE-SU-2025:02537-1"],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50196.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/07aea6819d569d1e172227486655e4fb5bd4cdb9"},{"type":"WEB","url":"https://git.kernel.org/stable/c/84a928b44cb303d5756e3bff2734921de8dce4f6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/92a563fcf14b3093226fb36f12e9b5cf630c5a5d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a1e4243c0dddeafb4ace6d9906d3f5129b81a9fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ed40a48d0a9166edb22e2b8efafea822e93dd79a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50196.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50196"},{"type":"PACKAGE","url":"https://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":"88c1e9404f1deee02e52d13aae3d9ee2cabd66f5"},{"fixed":"07aea6819d569d1e172227486655e4fb5bd4cdb9"},{"fixed":"84a928b44cb303d5756e3bff2734921de8dce4f6"},{"fixed":"a1e4243c0dddeafb4ace6d9906d3f5129b81a9fe"},{"fixed":"ed40a48d0a9166edb22e2b8efafea822e93dd79a"},{"fixed":"92a563fcf14b3093226fb36f12e9b5cf630c5a5d"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-50196.json"}}],"schema_version":"1.7.5"}