{"id":"CVE-2022-50046","published":"2025-06-18T11:01:47Z","modified":"2026-05-11T19:11:48Z","title":"net/sunrpc: fix potential memory leaks in rpc_sysfs_xprt_state_change()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sunrpc: fix potential memory leaks in rpc_sysfs_xprt_state_change()\n\nThe issue happens on some error handling paths. When the function\nfails to grab the object `xprt`, it simply returns 0, forgetting to\ndecrease the reference count of another object `xps`, which is\nincreased by rpc_sysfs_xprt_kobj_get_xprt_switch(), causing refcount\nleaks. Also, the function forgets to check whether `xps` is valid\nbefore using it, which may result in NULL-dereferencing issues.\n\nFix it by adding proper error handling code when either `xprt` or\n`xps` is NULL.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00199,"percentile":0.09845,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/c0434f0e058648649250b8ed6078b66d773de723","tags":[]},{"url":"https://git.kernel.org/stable/c/76fbeb1662b1c56514325118a07fba74dc4c79fe","tags":[]},{"url":"https://git.kernel.org/stable/c/bfc48f1b0505ffcb03a6d749139b7577d6b81ae0","tags":[]}],"priority":{"score":2.0,"factors":[{"name":"EPSS percentile","points":1.97}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, < c0434f0e058648649250b8ed6078b66d773de723",">= 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, < 76fbeb1662b1c56514325118a07fba74dc4c79fe",">= 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, < bfc48f1b0505ffcb03a6d749139b7577d6b81ae0"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"euvd":{"id":"EUVD-2022-55317","exploited":false,"provenance":"source"}}