{"id":"CVE-2021-47624","aliases":["CVE-2021-47624"],"related":[],"kind":"vulnerability","state":"published","title":"net/sunrpc: fix reference count leaks in rpc_sysfs_xprt_state_change","summary":"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\".","summarySource":"cvelist","descriptions":[{"lang":"en","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\".","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se resolvió la siguiente vulnerabilidad: net/sunrpc: corrige fugas de recuento de referencias en rpc_sysfs_xprt_state_change Los problemas de fugas de recuento tienen lugar en una ruta de manejo de errores. Cuando el tercer argumento buf no coincide con \"fuera de línea\", \"en línea\" o \"eliminar\", la función simplemente devuelve -EINVAL y se olvida de disminuir el recuento de referencias de un objeto rpc_xprt y un objeto rpc_xprt_switch aumentado en rpc_sysfs_xprt_kobj_get_xprt() y rpc_sysfs_xprt_kobj_get_xprt_switch (), lo que provoca fugas en el recuento de referencias de ambos objetos no utilizados. Solucione este problema saltando a la ruta de manejo de errores etiquetada con out_put cuando buf no coincida con \"fuera de línea\", \"en línea\" o \"eliminar\".","source":"nvd"}],"published":"2024-07-16T11:29:39.903Z","modified":"2026-06-17T04:18:11.440Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","score":7.1,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","fixed":"4b22aa42bd4d2d630ef1854c139275c3532937cb","status":"affected"},{"type":"git","introduced":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","fixed":"5f6024c05a2c0fdd180b29395aaf686d25af3a0f","status":"affected"},{"type":"git","introduced":"5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b","fixed":"776d794f28c95051bc70405a7b1fa40115658a18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.14","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.14","status":"unaffected"},{"type":"semver","introduced":"5.15.24","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.10","lastAffected":"5.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.15.24"},{"status":"affected","introduced":"5.16","fixed":"5.16.10"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18","tags":["mailing-list","patch","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T16:59:55.305Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47624","url":"https://www.cve.org/CVERecord?id=CVE-2021-47624","licence":"CVE Terms of Use","modified":"2026-05-11T13:58:06.706Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47624","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47624","licence":"Public domain","modified":"2026-06-17T04:18:11.440Z"}],"updatedAt":"2026-11-25T22:58:08.951Z","epss":{"score":0.00237,"percentile":0.15788,"date":"2026-12-01T12:00:22.000Z"}}