{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-47624","id":"CVE-2021-47624","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_swit","descriptionLong":"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\".","published":"2024-07-16T11:29:39.903Z","updated":"2026-10-29T11:12:04.112958118Z","reserved":"2024-07-16T11:26:52.956Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","lessThan":"4b22aa42bd4d2d630ef1854c139275c3532937cb","status":"affected","versionType":"git"},{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","lessThan":"5f6024c05a2c0fdd180b29395aaf686d25af3a0f","status":"affected","versionType":"git"},{"version":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","lessThan":"776d794f28c95051bc70405a7b1fa40115658a18","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","lessThan":"5.14","status":"unaffected","versionType":"semver"},{"version":"5.15.24","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"5.16.10","lessThanOrEqual":"5.16.*","status":"unaffected","versionType":"semver"},{"version":"5.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb","tags":["x_transferred","Mailing List","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f","tags":["x_transferred","Mailing List","Patch","fix"]},{"url":"https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18","tags":["x_transferred","Mailing List","Patch","fix"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00237,"epssPercentile":0.14926,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-47624","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47624","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-47624","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-47624","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}