{"id":"CVE-2021-47624","published":"2024-07-16T11:29:39Z","modified":"2026-05-11T13:58:06Z","title":"net/sunrpc: fix reference count 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 reference count leaks in rpc_sysfs_xprt_state_change\n\nThe refcount leak issues take place in an error handling path. When the\n3rd argument buf doesn't match with \"offline\", \"online\" or \"remove\", the\nfunction simply returns -EINVAL and forgets to decrease the reference\ncount of a rpc_xprt object and a rpc_xprt_switch object increased by\nrpc_sysfs_xprt_kobj_get_xprt() and\nrpc_sysfs_xprt_kobj_get_xprt_switch(), causing reference count leaks of\nboth unused objects.\n\nFix this issue by jumping to the error handling path labelled with\nout_put when buf matches none of \"offline\", \"online\" or \"remove\".","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00316,"percentile":0.16985,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb","tags":[]},{"url":"https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f","tags":[]},{"url":"https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18","tags":[]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":3.4}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, < 4b22aa42bd4d2d630ef1854c139275c3532937cb",">= 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, < 5f6024c05a2c0fdd180b29395aaf686d25af3a0f",">= 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b, < 776d794f28c95051bc70405a7b1fa40115658a18"]},{"vendor":"Linux","product":"Linux","versions":["5.14"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-10T16:59:55.305965Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34625","exploited":false,"provenance":"source"}}