CVE-2021-47624net/sunrpc: fix reference count leaks in rpc_sysfs_xprt_state_change
- 7.1HighCVSS base score
- 0.24%Exploitation in 30 daysEPSS · top 85% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In the Linux kernel, the following vulnerability has been resolved: net/sunrpc: fix reference count leaks in rpc_sysfs_xprt_state_change The refcount leak issues take place in an error handling path. When the 3rd argument buf doesn't match with "offline", "online" or "remove", the function simply returns -EINVAL and forgets to decrease the reference count of a rpc_xprt object and a rpc_xprt_switch object increased by rpc_sysfs_xprt_kobj_get_xprt() and rpc_sysfs_xprt_kobj_get_xprt_switch(), causing reference count leaks of both unused objects. Fix this issue by jumping to the error handling path labelled with out_put when buf matches none of "offline", "online" or "remove".
Timeline
ID reserved
By Linux
Published
- 22 months later
· 22 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
- EPSS (exploitation in 30 days)
- 0.24% · top 85% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.1.
Affected products
- affected 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b – < 4b22aa42bd4d2d630ef1854c139275c3532937cb
- affected 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b – < 5f6024c05a2c0fdd180b29395aaf686d25af3a0f
- affected 5b7eb78486cd9ac58bfbd6d84ea0fe2d9fead03b – < 776d794f28c95051bc70405a7b1fa40115658a18
- affected 5.14
- unaffected < 5.14
- unaffected 5.15.24 – ≤ 5.15.*
- unaffected 5.16.10 – ≤ 5.16.*
- unaffected 5.17 – ≤ *
References
References3
- https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f (opens in a new tab)x_transferred
- https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18 (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-34625 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-47624)Record last updated .