CVE-2021-47236·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: cdc_eem: fix tx fixup skb leak when usbnet transmit a skb, eem fixup it in eem_tx_fixup(), if skb_copy_expand() failed, it return NULL, usbnet_start_xmit() will have no chance to free original skb. fix it by free orginal skb in eem_tx_fixup() first, then check skb clone status, if failed, return NULL to usbnet.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 5.12.13
- 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.
Affected versions
From: 5.11
Until: 5.12.13
Fixed in: 5.12.13
How to fix this CVE
Update your Linux kernel to version 5.12.13 or later to resolve a memory leak in the CDC EEM USB network driver. The vulnerability occurs when the kernel fails to properly free socket buffers during network transmission, potentially leading to denial of service through memory exhaustion. Ensure your system receives the latest stable kernel updates from your distribution.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the current kernel version; vulnerable versions are 5.11 through 5.12.12
- Check if CDC EEM USB devices are connected using 'lsusb | grep -i eem' or 'cat /proc/net/dev' to list active network interfaces
- Monitor kernel memory usage with 'watch -n 1 free -h' during active USB network transfers to detect abnormal memory growth patterns
- Verify the fix by confirming kernel version is 5.12.13 or later with 'uname -r' after reboot
FAQ
What is CVE-2021-47236?
CVE-2021-47236 is a memory leak vulnerability in the Linux kernel's CDC Ethernet Emulation Model (EEM) USB driver. When the driver attempts to transmit network packets and encounters a memory allocation failure, it fails to properly release the original socket buffer, causing memory to be unavailable for other system operations.
Is CVE-2021-47236 being actively exploited?
No, according to CISA's Known Exploited Vulnerabilities (KEV) catalog, CVE-2021-47236 is not being actively exploited in the wild, and no public exploits are currently available.
What versions of Kernel are affected by CVE-2021-47236?
Linux kernel versions 5.11 through 5.12.12 are affected. The vulnerability was patched in kernel 5.12.13 and later stable releases.
How do I check if my server is vulnerable to CVE-2021-47236?
Run 'uname -r' and compare your kernel version against the vulnerable range 5.11-5.12.12. If your version falls within this range and you use USB CDC EEM network devices, you are vulnerable.
Does Defensia detect CVE-2021-47236?
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-47236 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/05b2b9f7d24b5663d9b47427fe1555bdafd3ea02
- https://git.kernel.org/stable/c/14184ec5c958b589ba934da7363a2877879204df
- https://git.kernel.org/stable/c/1bcacd6088d61c0ac6a990d87975600a81f3247e
- https://git.kernel.org/stable/c/81de2ed06df8b5451e050fe6a318af3263dbff3f
- https://git.kernel.org/stable/c/b4f7a9fc9d094c0c4a66f2ad7c37b1dbe9e78f88
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2021-47236. Free for 1 server.
Get started free