{"id":"CVE-2021-47624","state":"PUBLISHED","title":"net/sunrpc: fix reference count leaks in rpc_sysfs_xprt_state_change","description":"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\".","publishedAt":"2024-07-16T11:29:39.903Z","updatedAt":"2026-05-11T13:58:06.706Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","status":"affected","lessThan":"4b22aa42bd4d2d630ef1854c139275c3532937cb","versionType":"git"},{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","status":"affected","lessThan":"5f6024c05a2c0fdd180b29395aaf686d25af3a0f","versionType":"git"},{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","status":"affected","lessThan":"776d794f28c95051bc70405a7b1fa40115658a18","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.24","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.10","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/sysfs.c"]}],"references":["https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb","https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f","https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:19.404Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/47xxx/CVE-2021-47624.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-47624","state":"PUBLISHED","datePublished":"2024-07-16T11:29:39.903Z","dateUpdated":"2026-05-11T13:58:06.706Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-16T11:26:52.956Z"},"containers":{"cna":{"title":"net/sunrpc: fix reference count leaks in rpc_sysfs_xprt_state_change","descriptions":[{"lang":"en","value":"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\"."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","status":"affected","lessThan":"4b22aa42bd4d2d630ef1854c139275c3532937cb","versionType":"git"},{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","status":"affected","lessThan":"5f6024c05a2c0fdd180b29395aaf686d25af3a0f","versionType":"git"},{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","status":"affected","lessThan":"776d794f28c95051bc70405a7b1fa40115658a18","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.24","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"5.16.10","status":"unaffected","lessThanOrEqual":"5.16.*","versionType":"semver"},{"version":"5.17","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sunrpc/sysfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb"},{"url":"https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f"},{"url":"https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:58:06.706Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.16.10"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.17"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:47:40.258Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2021-47624","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T16:59:55.305965Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:16.385Z"}}]}}}