Vulnerability in Linux
CVE-2022-50046
In the Linux kernel, the following vulnerability has been resolved: net/sunrpc: fix potential memory leaks in rpc_sysfs_xprt_state_change() The issue happens on some error handling paths. When the function fails to grab the object `xprt`, it simply returns 0, forgetting to decrease the reference count of another object `xps`, which is increased by rpc_sysfs_xprt_kobj_get_xprt_switch(), causing refcount leaks. Also, the function forgets to check whether `xps` is valid before using it, which may result in NULL-dereferencing issues. Fix it by adding proper error handling code when either `xprt` or `xps` is NULL.
EPSS: 0.002 (5.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
Affected products
- Linux — versions 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, 5.14, 0
- Linux Linux_kernel — versions 6.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2022-50046?
- CVE-2022-50046 is a medium-severity vulnerability in Linux, classified under Missing Release of Memory after Effective Lifetime. CVSS score: 5.5/10. Published 2025-06-18.
- How severe is CVE-2022-50046?
- Medium severity. CVSS v3 base score is 5.5 out of 10.