CVE-2021-47596·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: hns3: fix use-after-free bug in hclgevf_send_mbx_msg Currently, the hns3_remove function firstly uninstall client instance, and then uninstall acceletion engine device. The netdevice is freed in client instance uninstall process, but acceletion engine device uninstall process still use it to trace runtime information. This causes a use after free problem. So fixes it by check the instance register state to avoid use after free.
- Severity
- high
- Software
- Kernel
- Fixed in
- 5.15.11
- 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% — higher than 3% 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-47596 scores 7.8 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.11
Until: 5.15.11
Fixed in: 5.15.11
How to fix this CVE
Update your Linux kernel to version 5.15.11 or later to resolve this use-after-free vulnerability in the HNS3 network driver. The fix implements proper instance registration state validation to prevent memory access after the network device has been freed during driver unloading. Systems running kernel versions 5.11 through 5.15.10 should prioritize this update to eliminate potential kernel memory corruption.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check current kernel version: uname -r (vulnerable if output shows 5.11.x through 5.15.10)
- Verify HNS3 driver is loaded: lsmod | grep hns3 (confirms if this component is active)
- Check dmesg for use-after-free errors: dmesg | grep -i 'use-after-free\|hns3\|hclgevf' (look for memory corruption warnings)
- Confirm patch application: cat /proc/version should show kernel >= 5.15.11, and git log in kernel source should include commit 12512bc8f25b8ba9795dfbae0e9ca57ff13fd542
FAQ
What is CVE-2021-47596?
This vulnerability occurs in the HNS3 Ethernet driver when the kernel incorrectly frees the network device before the acceleration engine completes its cleanup, allowing the driver to access already-freed memory and potentially corrupt kernel state.
Is CVE-2021-47596 being actively exploited?
No, this CVE is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are available. However, it remains a high-severity issue due to its potential for kernel crash and privilege escalation.
What versions of Kernel are affected by CVE-2021-47596?
Linux kernel versions 5.11 through 5.15.10 are vulnerable. Version 5.15.11 and later contain the fix.
How do I check if my server is vulnerable to CVE-2021-47596?
Run: uname -r && lsmod | grep hns3 — if the kernel version is between 5.11 and 5.15.10 and hns3 is listed, your system is vulnerable.
Does Defensia detect CVE-2021-47596?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2021-47596 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/12512bc8f25b8ba9795dfbae0e9ca57ff13fd542
- https://git.kernel.org/stable/c/27cbf64a766e86f068ce6214f04c00ceb4db1af4
- https://git.kernel.org/stable/c/4f4a353f6fe033807cd026a5de81c67469ff19b0
- https://git.kernel.org/stable/c/12512bc8f25b8ba9795dfbae0e9ca57ff13fd542
- https://git.kernel.org/stable/c/27cbf64a766e86f068ce6214f04c00ceb4db1af4
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47596. Free for 1 server.
Get started free