CVE-2021-47624·Kernel vulnerability
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".
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.16.10
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — in the bottom 1% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2021-47624 scores 7.1 on CVSS, so a successful attack would be serious — but at <0.1%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 5.16
Until: 5.16.10
Fixed in: 5.16.10
How to fix this CVE
Update your Linux kernel to version 5.16.10 or later to patch the reference count leak in the RPC sysfs transport state change handler. This vulnerability causes memory leaks when invalid parameters are passed to the rpc_sysfs_xprt_state_change function, allowing denial of service through gradual memory exhaustion. Apply the patch immediately on systems running kernel versions 5.16 through 5.16.9.
sudo dnf check-update kernel && sudo dnf update kernel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check your current kernel version and verify if it falls within the vulnerable range 5.16.0 to 5.16.9
- Check if the RPC sysfs interface is active: 'ls -la /sys/kernel/debug/sunrpc/' to confirm the sunrpc module is loaded
- Monitor system memory usage with 'free -h' and 'vmstat 1 10' to detect gradual memory consumption that could indicate reference count leaks
- Verify the patch was applied by running 'uname -r' again and confirming the kernel version is 5.16.10 or higher
FAQ
What is CVE-2021-47624?
CVE-2021-47624 is a reference count leak vulnerability in the Linux kernel's RPC sysfs transport state change handler that occurs when invalid parameters are provided, causing memory leaks and potential denial of service.
Is CVE-2021-47624 being actively exploited?
No, CVE-2021-47624 is not listed on the CISA KEV catalog and has no known public exploits, though it still poses a medium-term DoS risk through memory exhaustion.
What versions of Kernel are affected by CVE-2021-47624?
Linux kernel versions 5.16.0 through 5.16.9 are vulnerable; version 5.16.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47624?
Run 'uname -r' and check if the output shows a kernel version between 5.16.0 and 5.16.9; if so, your system is vulnerable.
Does Defensia detect CVE-2021-47624?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2021-47624 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb
- https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f
- https://git.kernel.org/stable/c/776d794f28c95051bc70405a7b1fa40115658a18
- https://git.kernel.org/stable/c/4b22aa42bd4d2d630ef1854c139275c3532937cb
- https://git.kernel.org/stable/c/5f6024c05a2c0fdd180b29395aaf686d25af3a0f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47624. Free for 1 server.
Get started free