What’s Vulnerable › Vulnerabilities
CVE-2022-50196: soc: qcom: ocmem: Fix refcount leak in of_get_ocmem
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-06-18 · updated 2026-06-17
Description
In the Linux kernel, the following vulnerability has been resolved: soc: qcom: ocmem: Fix refcount leak in of_get_ocmem of_parse_phandle() returns a node pointer with refcount incremented, we should use of_node_put() on it when not need anymore. Add missing of_node_put() to avoid refcount leak. of_node_put() will check NULL pointer.
Affected products
- Linux kernel: from 5.5 before 5.10.137; from 5.11 before 5.15.61; from 5.16 before 5.18.18; from 5.19 before 5.19.2 — fixed in 5.10.137, 5.15.61, 5.18.18, 5.19.2
How to fix
Upgrade to a fixed version: Linux kernel 5.10.137, 5.15.61, 5.18.18, 5.19.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/07aea6819d569d1e172227486655e4fb5bd4cdb9
- https://git.kernel.org/stable/c/84a928b44cb303d5756e3bff2734921de8dce4f6
- https://git.kernel.org/stable/c/92a563fcf14b3093226fb36f12e9b5cf630c5a5d
- https://git.kernel.org/stable/c/a1e4243c0dddeafb4ace6d9906d3f5129b81a9fe
- https://git.kernel.org/stable/c/ed40a48d0a9166edb22e2b8efafea822e93dd79a
Get alerted when CVE-2022-50196 or the next vulnerability affects your stack